Some minor python UI script fixes.

This commit is contained in:
Brecht Van Lommel
2010-04-01 12:53:38 +00:00
parent 9822e07be6
commit aff0551e5b
3 changed files with 313 additions and 5 deletions

View File

@@ -252,7 +252,7 @@ class IMAGE_HT_header(bpy.types.Header):
iuser = sima.image_user
toolsettings = context.tool_settings
# show_render = sima.show_render
show_render = sima.show_render
# show_paint = sima.show_paint
show_uvedit = sima.show_uvedit
@@ -276,7 +276,8 @@ class IMAGE_HT_header(bpy.types.Header):
sub.menu("IMAGE_MT_uvs")
layout.template_ID(sima, "image", new="image.new")
layout.prop(sima, "image_pin", text="")
if not show_render:
layout.prop(sima, "image_pin", text="")
# uv editing
if show_uvedit:

View File

@@ -241,7 +241,7 @@ class INFO_MT_add(bpy.types.Menu):
if(len(bpy.data.groups) > 10):
layout.operator_context = 'INVOKE_DEFAULT'
layout.operator("object.group_instance_add", "type", text="Group Instance...", icon='OUTLINER_OB_EMPTY')
layout.operator("object.group_instance_add", text="Group Instance...", icon='OUTLINER_OB_EMPTY')
else:
layout.operator_menu_enum("object.group_instance_add", "type", text="Group Instance", icon='OUTLINER_OB_EMPTY')