Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-10-09 13:15:47 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-10-09 13:17:31 +0400
commit375d2dc85535b9f08fd2e854c80434eac1c28a67 (patch)
tree9cb344ef18c86d8286abfb2933d37e98cc48754c /release/scripts/startup/bl_ui/space_image.py
parentfe9394741b7ac9ca153c602d6f58664b27438d56 (diff)
Implement custom names for render slots
Basically the title tells it all, quite straightforward implementation. The only thing is the image.render_slot which used to represent the active render slot index is now moved to image.render_slots.active_index. Reviewers: venomgfx, campbellbarton Differential Revision: https://developer.blender.org/D821
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index 927e517ef21..0b97a2dda28 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -661,6 +661,11 @@ class IMAGE_PT_view_properties(Panel):
sub.active = uvedit.show_stretch
sub.row().prop(uvedit, "draw_stretch_type", expand=True)
+ if ima:
+ layout.separator()
+ render_slot = ima.render_slots.active
+ layout.prop(render_slot, "name", text="Slot Name")
+
class IMAGE_PT_tools_transform_uvs(Panel, UVToolsPanel):
bl_label = "Transform"