rigidbody: Fix constraint buttons only showing for mesh objects
authorSergej Reich <sergej.reich@googlemail.com>
Wed, 23 Jan 2013 13:45:52 +0000 (13:45 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Wed, 23 Jan 2013 13:45:52 +0000 (13:45 +0000)
Was silly indentation mistake.

release/scripts/startup/bl_ui/properties_physics_common.py

index 68c04cf..17a44a5 100644 (file)
@@ -88,10 +88,11 @@ class PHYSICS_PT_add(PhysicButtonsPanel, Panel):
                                 "rigidbody.object_remove",
                                 'MESH_ICOSPHERE') # XXX: need dedicated icon
 
-            physics_add_special(self, col, ob.rigid_body_constraint, "Rigid Body Constraint",
-                                "rigidbody.constraint_add",
-                                "rigidbody.constraint_remove",
-                                'CONSTRAINT') # RB_TODO needs better icon
+        # all types of objects can have rigid body constraint
+        physics_add_special(self, col, ob.rigid_body_constraint, "Rigid Body Constraint",
+                            "rigidbody.constraint_add",
+                            "rigidbody.constraint_remove",
+                            'CONSTRAINT') # RB_TODO needs better icon
 
 
 # cache-type can be 'PSYS' 'HAIR' 'SMOKE' etc