Texture UI:

* Use the full space for the Texture ID Block.
This commit is contained in:
Thomas Dinges
2012-10-21 11:04:04 +00:00
parent fff19a1360
commit 1abb60af80

View File

@@ -149,20 +149,15 @@ class TEXTURE_PT_context_texture(TextureButtonsPanel, Panel):
col.operator("texture.slot_move", text="", icon='TRIA_DOWN').type = 'DOWN' col.operator("texture.slot_move", text="", icon='TRIA_DOWN').type = 'DOWN'
col.menu("TEXTURE_MT_specials", icon='DOWNARROW_HLT', text="") col.menu("TEXTURE_MT_specials", icon='DOWNARROW_HLT', text="")
split = layout.split(percentage=0.65)
col = split.column()
if tex_collection: if tex_collection:
col.template_ID(idblock, "active_texture", new="texture.new") layout.template_ID(idblock, "active_texture", new="texture.new")
elif node: elif node:
col.template_ID(node, "texture", new="texture.new") layout.template_ID(node, "texture", new="texture.new")
elif idblock: elif idblock:
col.template_ID(idblock, "texture", new="texture.new") layout.template_ID(idblock, "texture", new="texture.new")
if pin_id: if pin_id:
col.template_ID(space, "pin_id") layout.template_ID(space, "pin_id")
col = split.column()
if tex: if tex:
split = layout.split(percentage=0.2) split = layout.split(percentage=0.2)