Add new property to set if constraint is relative
This commit is contained in:
parent
ebfbb68bb4
commit
f2cf3bdeda
|
@ -286,6 +286,7 @@ def init_properties():
|
|||
default=(True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False),
|
||||
size=20,
|
||||
subtype='LAYER')
|
||||
bpy.types.Object.arm_relative_physics_constraint = BoolProperty(name="Relative Physics Constraint", description="Add physics constraint relative to the parent object or collection when spawned", default=False)
|
||||
bpy.types.Object.arm_animation_enabled = BoolProperty(name="Animation", description="Enable skinning & timeline animation", default=True)
|
||||
bpy.types.Object.arm_tilesheet = StringProperty(name="Tilesheet", description="Set tilesheet animation", default='')
|
||||
bpy.types.Object.arm_tilesheet_action = StringProperty(name="Tilesheet Action", description="Set startup action", default='')
|
||||
|
|
|
@ -211,8 +211,11 @@ class ARM_PT_PhysicsPropsPanel(bpy.types.Panel):
|
|||
layout.prop(obj, 'arm_rb_trigger')
|
||||
layout.prop(obj, 'arm_rb_ccd')
|
||||
|
||||
if obj.soft_body != None:
|
||||
if obj.soft_body is not None:
|
||||
layout.prop(obj, 'arm_soft_body_margin')
|
||||
|
||||
if obj.rigid_body_constraint is not None:
|
||||
layout.prop(obj, 'arm_relative_physics_constraint')
|
||||
|
||||
# Menu in data region
|
||||
class ARM_PT_DataPropsPanel(bpy.types.Panel):
|
||||
|
|
Loading…
Reference in a new issue