Implemented single column UI for textures, curve, mesh and empty.

Reverted 24524 materials change because it it made greying out not work correctly.
This commit is contained in:
2009-11-12 15:41:44 +00:00
parent 17b6dfa499
commit fbb2c38485
5 changed files with 263 additions and 107 deletions

View File

@@ -19,6 +19,7 @@
# <pep8 compliant>
import bpy
narrowui = 180
class DataButtonsPanel(bpy.types.Panel):
bl_space_type = 'PROPERTIES'
@@ -36,8 +37,12 @@ class DATA_PT_empty(DataButtonsPanel):
layout = self.layout
ob = context.object
col2 = context.region.width > narrowui
layout.itemR(ob, "empty_draw_type", text="Display")
if col2:
layout.itemR(ob, "empty_draw_type", text="Display")
else:
layout.itemR(ob, "empty_draw_type", text="")
layout.itemR(ob, "empty_draw_size", text="Size")
bpy.types.register(DATA_PT_empty)