UI:
* Fix context.cloth, was not being set correct. * Fix errors with context pinning, scripts should not assume context.object to be there. * Always show preview even if e.g. the material is not set, to keep ID buttons from jumping while you're using them.
This commit is contained in:
@@ -14,7 +14,7 @@ class DATA_PT_mesh(DataButtonsPanel):
|
||||
__label__ = "Mesh"
|
||||
|
||||
def poll(self, context):
|
||||
return (context.object.type == 'MESH')
|
||||
return (context.object and context.object.type == 'MESH')
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -48,4 +48,4 @@ class DATA_PT_mesh(DataButtonsPanel):
|
||||
|
||||
layout.itemR(mesh, "texco_mesh")
|
||||
|
||||
bpy.types.register(DATA_PT_mesh)
|
||||
bpy.types.register(DATA_PT_mesh)
|
||||
|
||||
Reference in New Issue
Block a user