* Removed "Lock" Prefix from items inside Transform Lock Panel for consistency.

* Code cleanup to match guidelines, we don't use subrow1 or so anymore, remember? :)
This commit is contained in:
Thomas Dinges
2009-11-08 11:07:00 +00:00
parent e214023c11
commit 18a5cd095a
2 changed files with 36 additions and 35 deletions

View File

@@ -78,18 +78,18 @@ class OBJECT_PT_transform_locks(ObjectButtonsPanel):
row = layout.row()
col = row.column()
col.itemR(ob, "lock_location")
col.itemR(ob, "lock_location", text="Location")
col = row.column()
if ob.rotation_mode in ('QUATERNION', 'AXIS_ANGLE'):
col.itemR(ob, "lock_rotations_4d", text="Lock Rotation")
col.itemR(ob, "lock_rotations_4d", text="Rotation")
if ob.lock_rotations_4d:
col.itemR(ob, "lock_rotation_w", text="W")
col.itemR(ob, "lock_rotation", text="")
else:
col.itemR(ob, "lock_rotation", text="Rotation")
row.column().itemR(ob, "lock_scale")
row.column().itemR(ob, "lock_scale", text="Scale")
class OBJECT_PT_relations(ObjectButtonsPanel):