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>2016-02-20 22:18:58 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-02-20 22:22:51 +0300
commit1b9039752ac922355aab565f12d8db3edd834e06 (patch)
treec7353acc0085eb49e24e785d5aeae3df7e90c202 /release
parente608f2e7ecb76a7ad8e64d2454cf29308207d068 (diff)
Fix unnecessary separators in image editor Image menu.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index d29cd18053f..10b4e24efd9 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -208,19 +208,18 @@ class IMAGE_MT_image(Menu):
layout.menu("IMAGE_MT_image_invert")
if not show_render:
- layout.separator()
-
if not ima.packed_file:
+ layout.separator()
layout.operator("image.pack")
# only for dirty && specific image types, perhaps
# this could be done in operator poll too
if ima.is_dirty:
if ima.source in {'FILE', 'GENERATED'} and ima.type != 'OPEN_EXR_MULTILAYER':
+ if ima.packed_file:
+ layout.separator()
layout.operator("image.pack", text="Pack As PNG").as_png = True
- layout.separator()
-
class IMAGE_MT_image_invert(Menu):
bl_label = "Invert"