Some minor python UI script fixes.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user