ChildOf Constraint: Hide the Loc/Rot/Scale toggles

The RNA properties are still there (in case you really need them), except now
they will not be shown in the UI anymore, as this constraint really didn't
work well/at all when any of those was disabled. Most people shouldn't really
need to worry about this change.

If anyone wants a matrix-math challenge, they're welcome to try getting those
working for real, so that we can show these toggles again.
This commit is contained in:
Joshua Leung 2016-06-24 03:07:45 +12:00
parent 9466829ead
commit 4fd78bb06f
Notes: blender-bot 2023-02-14 07:46:51 +01:00
Referenced by commit 91533b6f34, Revert "ChildOf Constraint: Hide the Loc/Rot/Scale toggles"
Referenced by issue #48762, what's happen to child of constraint?
1 changed files with 16 additions and 16 deletions

View File

@ -96,25 +96,25 @@ class ConstraintButtonsPanel:
def CHILD_OF(self, context, layout, con):
self.target_template(layout, con)
split = layout.split()
#split = layout.split()
col = split.column()
col.label(text="Location:")
col.prop(con, "use_location_x", text="X")
col.prop(con, "use_location_y", text="Y")
col.prop(con, "use_location_z", text="Z")
#col = split.column()
#col.label(text="Location:")
#col.prop(con, "use_location_x", text="X")
#col.prop(con, "use_location_y", text="Y")
#col.prop(con, "use_location_z", text="Z")
col = split.column()
col.label(text="Rotation:")
col.prop(con, "use_rotation_x", text="X")
col.prop(con, "use_rotation_y", text="Y")
col.prop(con, "use_rotation_z", text="Z")
#col = split.column()
#col.label(text="Rotation:")
#col.prop(con, "use_rotation_x", text="X")
#col.prop(con, "use_rotation_y", text="Y")
#col.prop(con, "use_rotation_z", text="Z")
col = split.column()
col.label(text="Scale:")
col.prop(con, "use_scale_x", text="X")
col.prop(con, "use_scale_y", text="Y")
col.prop(con, "use_scale_z", text="Z")
#col = split.column()
#col.label(text="Scale:")
#col.prop(con, "use_scale_x", text="X")
#col.prop(con, "use_scale_y", text="Y")
#col.prop(con, "use_scale_z", text="Z")
row = layout.row()
row.operator("constraint.childof_set_inverse")