fix rotational limits not showing for GENERIC ridgid body constraint

oversight in rB502aabb9d0c5

part of T60290
This commit is contained in:
Philipp Oeser 2019-01-08 10:20:53 +01:00
parent 859a4dd51b
commit f2d2bafe85
Notes: blender-bot 2023-02-14 09:38:57 +01:00
Referenced by issue #60290, missing UI elements.
1 changed files with 2 additions and 2 deletions

View File

@ -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")