* Texture Mapping Panel could raise an error, missed check for an active texture slot.

This commit is contained in:
Thomas Dinges 2010-04-07 18:08:30 +00:00
parent 11b52ae30a
commit b2330d44d2

@ -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