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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-07-10 00:27:06 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-07-10 00:31:44 +0300
commit845899d373df4fa5e692c828d6af151309169c87 (patch)
tree62d28aa6050478876018869a6ff9b2c24bd25679 /release
parent07e368cb5f6a4f73164a70794e884970d171d909 (diff)
UI: tweak image menu layout to match file menu more.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py33
1 files changed, 18 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index e20c3ccd7f5..1303e46ab6c 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -191,30 +191,33 @@ class IMAGE_MT_image(Menu):
sima = context.space_data
ima = sima.image
-
- layout.operator("image.new")
- layout.operator("image.open")
-
show_render = sima.show_render
- layout.operator("image.read_viewlayers")
+ layout.operator("image.new", text="New")
+ layout.operator("image.open", text="Open...")
- layout.operator("image.save_dirty", text="Save All Images")
+ layout.operator("image.read_viewlayers")
if ima:
if not show_render:
- layout.operator("image.replace")
- layout.operator("image.reload")
+ layout.operator("image.replace", text="Replace...")
+ layout.operator("image.reload", text="Reload")
- layout.operator("image.save")
- layout.operator("image.save_as")
- layout.operator("image.save_as", text="Save a Copy").copy = True
+ layout.operator("image.external_edit", "Edit Externally")
- if ima.source == 'SEQUENCE':
- layout.operator("image.save_sequence")
+ layout.separator()
- layout.operator("image.external_edit", "Edit Externally")
+ if ima:
+ layout.operator("image.save", text="Save")
+ layout.operator("image.save_as", text="Save As...")
+ layout.operator("image.save_as", text="Save a Copy...").copy = True
+
+ if ima and ima.source == 'SEQUENCE':
+ layout.operator("image.save_sequence")
+ layout.operator("image.save_dirty", text="Save All Images")
+
+ if ima:
layout.separator()
layout.menu("IMAGE_MT_image_invert")
@@ -222,7 +225,7 @@ class IMAGE_MT_image(Menu):
if not show_render:
if not ima.packed_file:
layout.separator()
- layout.operator("image.pack")
+ layout.operator("image.pack", text="Pack")
# only for dirty && specific image types, perhaps
# this could be done in operator poll too