projects
/
blender-staging.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2.5 Physic Buttons:
[blender-staging.git]
/
release
/
ui
/
buttons_physic_cloth.py
diff --git
a/release/ui/buttons_physic_cloth.py
b/release/ui/buttons_physic_cloth.py
index ecb5e48569aebdb243342f6d733809f86805c0ed..edb778b4dce3694960dd15427809842a55914640 100644
(file)
--- a/
release/ui/buttons_physic_cloth.py
+++ b/
release/ui/buttons_physic_cloth.py
@@
-7,7
+7,8
@@
class PhysicButtonsPanel(bpy.types.Panel):
__context__ = "physics"
def poll(self, context):
- return (context.object != None)
+ ob = context.object
+ return (ob and ob.type == 'MESH')
class PHYSICS_PT_cloth(PhysicButtonsPanel):
__idname__ = "PHYSICS_PT_cloth"