Browse Source

wxNviz: fix initializing alpha in texture

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48656 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 years ago
parent
commit
ff07b2cf32
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/gui_modules/wxnviz.py

+ 2 - 1
gui/wxpython/gui_modules/wxnviz.py

@@ -1883,7 +1883,8 @@ class Texture(object):
         self.textDict = textDict
         self.textDict = textDict
         
         
         # alpha needs to be initialized
         # alpha needs to be initialized
-        self.image.InitAlpha()
+        if not self.image.HasAlpha():
+            self.image.InitAlpha()
     
     
         # resize image to match 2^n
         # resize image to match 2^n
         self.Resize()
         self.Resize()