2.5 Physic Buttons:
[blender-staging.git] / release / ui / buttons_physics_softbody.py
index 389d91bafa7ad25b83e404a105307807dd91fa51..2597645f7ba578d458b2f3f021d5b05c5c9cbfc1 100644 (file)
@@ -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_softbody(PhysicButtonsPanel):
        __idname__ = "PHYSICS_PT_softbody"