Renamed "col2" to "wide_ui" which is more meaningful.
This commit is contained in:
@@ -49,9 +49,9 @@ class OBJECT_PT_transform(ObjectButtonsPanel):
|
||||
layout = self.layout
|
||||
|
||||
ob = context.object
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
row = layout.row()
|
||||
|
||||
row.column().itemR(ob, "location")
|
||||
@@ -90,7 +90,7 @@ class OBJECT_PT_transform_locks(ObjectButtonsPanel):
|
||||
layout = self.layout
|
||||
|
||||
ob = context.object
|
||||
# col2 = context.region.width > narrowui
|
||||
# wide_ui = context.region.width > narrowui
|
||||
|
||||
row = layout.row()
|
||||
|
||||
@@ -116,7 +116,7 @@ class OBJECT_PT_relations(ObjectButtonsPanel):
|
||||
layout = self.layout
|
||||
|
||||
ob = context.object
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
split = layout.split()
|
||||
|
||||
@@ -125,7 +125,7 @@ class OBJECT_PT_relations(ObjectButtonsPanel):
|
||||
col.itemS()
|
||||
col.itemR(ob, "pass_index")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemL(text="Parent:")
|
||||
col.itemR(ob, "parent", text="")
|
||||
@@ -145,9 +145,9 @@ class OBJECT_PT_groups(ObjectButtonsPanel):
|
||||
layout = self.layout
|
||||
|
||||
ob = context.object
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
split = layout.split()
|
||||
split.item_menu_enumO("object.group_add", "group", text="Add to Group")
|
||||
split.itemL()
|
||||
@@ -169,7 +169,7 @@ class OBJECT_PT_groups(ObjectButtonsPanel):
|
||||
col = split.column()
|
||||
col.itemR(group, "layer", text="Dupli")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemR(group, "dupli_offset", text="")
|
||||
|
||||
@@ -181,13 +181,13 @@ class OBJECT_PT_display(ObjectButtonsPanel):
|
||||
layout = self.layout
|
||||
|
||||
ob = context.object
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
split = layout.split()
|
||||
col = split.column()
|
||||
col.itemR(ob, "max_draw_type", text="Type")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
row = col.row()
|
||||
row.itemR(ob, "draw_bounds", text="Bounds")
|
||||
@@ -202,7 +202,7 @@ class OBJECT_PT_display(ObjectButtonsPanel):
|
||||
col.itemR(ob, "draw_axis", text="Axis")
|
||||
col.itemR(ob, "draw_wire", text="Wire")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemR(ob, "draw_texture_space", text="Texture Space")
|
||||
col.itemR(ob, "x_ray", text="X-Ray")
|
||||
@@ -216,9 +216,9 @@ class OBJECT_PT_duplication(ObjectButtonsPanel):
|
||||
layout = self.layout
|
||||
|
||||
ob = context.object
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
layout.itemR(ob, "dupli_type", expand=True)
|
||||
else:
|
||||
layout.itemR(ob, "dupli_type", text="")
|
||||
@@ -230,7 +230,7 @@ class OBJECT_PT_duplication(ObjectButtonsPanel):
|
||||
col.itemR(ob, "dupli_frames_start", text="Start")
|
||||
col.itemR(ob, "dupli_frames_end", text="End")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column(align=True)
|
||||
col.itemR(ob, "dupli_frames_on", text="On")
|
||||
col.itemR(ob, "dupli_frames_off", text="Off")
|
||||
@@ -246,12 +246,12 @@ class OBJECT_PT_duplication(ObjectButtonsPanel):
|
||||
col = split.column()
|
||||
col.itemR(ob, "dupli_faces_scale", text="Scale")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemR(ob, "dupli_faces_inherit_scale", text="Inherit Scale")
|
||||
|
||||
elif ob.dupli_type == 'GROUP':
|
||||
if col2:
|
||||
if wide_ui:
|
||||
layout.itemR(ob, "dupli_group", text="Group")
|
||||
else:
|
||||
layout.itemR(ob, "dupli_group", text="")
|
||||
@@ -264,7 +264,7 @@ class OBJECT_PT_animation(ObjectButtonsPanel):
|
||||
layout = self.layout
|
||||
|
||||
ob = context.object
|
||||
col2 = context.region.width > narrowui
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
split = layout.split()
|
||||
|
||||
@@ -282,7 +282,7 @@ class OBJECT_PT_animation(ObjectButtonsPanel):
|
||||
row.active = ob.parent != None
|
||||
col.itemR(ob, "time_offset", text="Offset")
|
||||
|
||||
if col2:
|
||||
if wide_ui:
|
||||
col = split.column()
|
||||
col.itemL(text="Track:")
|
||||
col.itemR(ob, "track", text="")
|
||||
|
||||
Reference in New Issue
Block a user