* Texture Mapping Panel could raise an error, missed check for an active texture...
authorThomas Dinges <blender@dingto.org>
Wed, 7 Apr 2010 18:08:30 +0000 (18:08 +0000)
committerThomas Dinges <blender@dingto.org>
Wed, 7 Apr 2010 18:08:30 +0000 (18:08 +0000)
release/scripts/ui/properties_texture.py

index 48f7d8f6d2ac32acba1d68ef394a20c52d3c7637..e511f6ca6543552f77d57b3bbeaf3d4a7ce725d3 100644 (file)
@@ -207,7 +207,7 @@ class TEXTURE_PT_mapping(TextureSlotPanel):
         idblock = context_tex_datablock(context)
         if type(idblock) == bpy.types.Brush and not context.sculpt_object:
             return False
-        return True
+        return context.texture_slot
 
     def draw(self, context):
         layout = self.layout