2.5 Physic Buttons:
[blender-staging.git] / release / ui / buttons_physics_field.py
index 3204ab4709d9b09b7909ab07059d47e26bd488a0..5843d1aadf655e5479add5ea42813c97c7696a6b 100644 (file)
@@ -30,6 +30,10 @@ class PHYSICS_PT_field(PhysicButtonsPanel):
 class PHYSICS_PT_collision(PhysicButtonsPanel):
        __idname__ = "PHYSICS_PT_collision"
        __label__ = "Collision"
+       
+       def poll(self, context):
+               ob = context.object
+               return (ob and ob.type == 'MESH')
 
        def draw_header(self, context):
                settings = context.object.collision