diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-01-08 12:20:53 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-01-08 12:21:26 +0300 |
commit | f2d2bafe8569188d00d5f68da296bd3279e2b243 (patch) | |
tree | c110d9e03236ee9fe4ab227f68bc457b5701625d | |
parent | 859a4dd51b824f4210c8a85ea3769995ac35cd4c (diff) |
fix rotational limits not showing for GENERIC ridgid body constraint
oversight in rB502aabb9d0c5
part of T60290
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py b/release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py index 3ddf464390a..d3ed8c05fdd 100644 --- a/release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py +++ b/release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py @@ -212,7 +212,7 @@ class PHYSICS_PT_rigid_body_constraint_limits_angular(PHYSICS_PT_rigidbody_const rbc = ob.rigid_body_constraint return (ob and rbc - and (rbc.type in {'GENERIC_SPRING', 'HINGE', 'PISTON'}) + and (rbc.type in {'GENERIC', 'GENERIC_SPRING', 'HINGE', 'PISTON'}) and context.engine in cls.COMPAT_ENGINES) def draw(self, context): @@ -241,7 +241,7 @@ class PHYSICS_PT_rigid_body_constraint_limits_angular(PHYSICS_PT_rigidbody_const sub.prop(rbc, "limit_ang_x_lower", text="X Lower") sub.prop(rbc, "limit_ang_x_upper", text="Upper") - elif rbc.type == 'GENERIC_SPRING': + elif rbc.type in {'GENERIC', 'GENERIC_SPRING'}: col = flow.column() col.prop(rbc, "use_limit_ang_x") |