Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_object.py
| Context not available. | |||||
| row.use_property_decorate = False | row.use_property_decorate = False | ||||
| row.prop(ob, "lock_rotation", text="", emboss=False, icon='DECORATE_UNLOCKED') | row.prop(ob, "lock_rotation", text="", emboss=False, icon='DECORATE_UNLOCKED') | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.prop(ob, "rotation_mode", text="Mode") | row.prop(ob, "rotation_mode", text=" ") | ||||
| row.label(text="", icon='BLANK1') | row.label(text="", icon='BLANK1') | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row(align=True) | if ob.scale_mode == 'FACTOR': | ||||
| row.prop(ob, "scale") | row = col.row(align=True) | ||||
| row.use_property_decorate = False | row.prop(ob, "scale") | ||||
| row.prop(ob, "lock_scale", text="", emboss=False, icon='DECORATE_UNLOCKED') | row.use_property_decorate = False | ||||
| row.prop(ob, "lock_scale", text="", emboss=False, icon='DECORATE_UNLOCKED') | |||||
| else: | |||||
| row = col.row() | |||||
| row.prop(ob, "dimensions") | |||||
| row.label(text="", icon='BLANK1') | |||||
| row = layout.row(align=True) | |||||
| row.prop(ob, "scale_mode", text=" ") | |||||
| row.label(text="", icon='BLANK1') | |||||
| class OBJECT_PT_delta_transform(ObjectButtonsPanel, Panel): | class OBJECT_PT_delta_transform(ObjectButtonsPanel, Panel): | ||||
| Context not available. | |||||