Fix for Texture Tab. Influence Panel got shown even when no active slot was selected...
authorThomas Dinges <blender@dingto.org>
Thu, 22 Oct 2009 15:33:53 +0000 (15:33 +0000)
committerThomas Dinges <blender@dingto.org>
Thu, 22 Oct 2009 15:33:53 +0000 (15:33 +0000)
release/scripts/ui/buttons_texture.py

index 30262ea34150ea46ad3d17b42178e3519d4df8c1..1680a80bb6c1b16704ccfc0862be7cc90f065f5c 100644 (file)
@@ -220,7 +220,7 @@ class TEXTURE_PT_mapping(TextureSlotPanel):
 class TEXTURE_PT_influence(TextureSlotPanel):
        __label__ = "Influence"
        def poll(self, context):
-               return 1
+               return context.texture_slot
                
        
        def draw(self, context):