Fix unnecessary separators in image editor Image menu.
This commit is contained in:
parent
e608f2e7ec
commit
1b9039752a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user