[Bf-blender-cvs] [845899d373d] blender2.8: UI: tweak image menu layout to match file menu more.
Brecht Van Lommel
noreply at git.blender.org
Mon Jul 9 23:58:17 CEST 2018
Commit: 845899d373df4fa5e692c828d6af151309169c87
Author: Brecht Van Lommel
Date: Mon Jul 9 23:27:06 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB845899d373df4fa5e692c828d6af151309169c87
UI: tweak image menu layout to match file menu more.
===================================================================
M release/scripts/startup/bl_ui/space_image.py
M source/blender/editors/space_image/image_ops.c
===================================================================
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
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index f852f601db2..650b48b3b1c 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -3700,7 +3700,7 @@ static int image_read_viewlayers_exec(bContext *C, wmOperator *UNUSED(op))
void IMAGE_OT_read_viewlayers(wmOperatorType *ot)
{
- ot->name = "Read View Layers";
+ ot->name = "Open Cached Render";
ot->idname = "IMAGE_OT_read_viewlayers";
ot->description = "Read all the current scene's view layers from cache, as needed";
More information about the Bf-blender-cvs
mailing list