forked from bartvdbraak/blender
* Texture Mapping Panel could raise an error, missed check for an active texture slot.
This commit is contained in:
parent
11b52ae30a
commit
b2330d44d2
@ -207,7 +207,7 @@ class TEXTURE_PT_mapping(TextureSlotPanel):
|
|||||||
idblock = context_tex_datablock(context)
|
idblock = context_tex_datablock(context)
|
||||||
if type(idblock) == bpy.types.Brush and not context.sculpt_object:
|
if type(idblock) == bpy.types.Brush and not context.sculpt_object:
|
||||||
return False
|
return False
|
||||||
return True
|
return context.texture_slot
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
Loading…
Reference in New Issue
Block a user