Only show image slot-name in render view

This commit is contained in:
Campbell Barton
2015-04-06 17:06:37 +10:00
parent dd3aa1b372
commit 9f8ffd478e

View File

@@ -625,6 +625,8 @@ class IMAGE_PT_view_properties(Panel):
sima = context.space_data
ima = sima.image
show_render = sima.show_render
show_uvedit = sima.show_uvedit
show_maskedit = sima.show_maskedit
uvedit = sima.uv_editor
@@ -669,7 +671,7 @@ class IMAGE_PT_view_properties(Panel):
sub.active = uvedit.show_stretch
sub.row().prop(uvedit, "draw_stretch_type", expand=True)
if ima:
if show_render and ima:
layout.separator()
render_slot = ima.render_slots.active
layout.prop(render_slot, "name", text="Slot Name")