Fix T55958: allow the user to select between spring and spring2.
[blender.git] / release / scripts / startup / bl_ui / properties_physics_rigidbody_constraint.py
index 84a4cbb4b68b455a1fc19a4b17902c344508e46c..8f6b5b5d8b2c144cbe08a4cf1743b93faa53924c 100644 (file)
@@ -140,6 +140,11 @@ class PHYSICS_PT_rigid_body_constraint(PHYSICS_PT_rigidbody_constraint_panel, Pa
             sub.prop(rbc, "motor_ang_max_impulse", text="Max Impulse")
 
         elif rbc.type in {'GENERIC', 'GENERIC_SPRING'}:
+            if rbc.type == 'GENERIC_SPRING':
+                row = layout.row()
+                row.label("Spring Type:")
+                row.prop(rbc, "spring_type", text="")
+
             col = layout.column(align=True)
             col.label("Limits:")