2.5 - Made more operators for constraint buttons

* Move Up/Down and Delete are now operators 
* Made TrackTo constraint use expanded enum toggles for up axis too. 
--> BUG ALERT: specifying name and expand in the arguments to itemR doesn't work (name gets skipped)
This commit is contained in:
2009-07-11 12:54:17 +00:00
parent 10d14e7259
commit 0096a3dee2
6 changed files with 99 additions and 103 deletions

View File

@@ -109,7 +109,6 @@ class ConstraintButtonsPanel(bpy.types.Panel):
sub.itemR(con, "sizey", text="Y")
sub.itemR(con, "sizez", text="Z")
# Missing
row = layout.row()
row.itemO("CONSTRAINT_OT_childof_set_inverse")
row.itemO("CONSTRAINT_OT_childof_clear_inverse")
@@ -122,6 +121,7 @@ class ConstraintButtonsPanel(bpy.types.Panel):
row.itemR(con, "track", expand=True)
row = layout.row()
#row.itemR(con, "up", text="Up", expand=True) # XXX: up and expand don't play nice together
row.itemR(con, "up", text="Up")
row.itemR(con, "target_z")