Commit: 463b38b0e0b0eaa1eae732f5f3f034e7be9ea5da Author: Antonio Vazquez Date: Fri Apr 16 15:39:08 2021 +0200 Branches: blender-v2.93-release https://developer.blender.org/rB463b38b0e0b0eaa1eae732f5f3f034e7be9ea5da
GPencil: Remove Grease Pencil menu options in UV editor Differential Revision: https://developer.blender.org/D10993 =================================================================== M release/scripts/startup/bl_ui/space_image.py =================================================================== diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index e7589709130..11eaf55a98b 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -246,11 +246,12 @@ class IMAGE_MT_image(Menu): layout.separator() layout.operator("image.pack", text="Pack") - if ima: + if ima and context.area.ui_type == 'IMAGE_EDITOR': layout.separator() layout.operator("palette.extract_from_image", text="Extract Palette") layout.operator("gpencil.image_to_grease_pencil", text="Generate Grease Pencil") + class IMAGE_MT_image_flip(Menu): bl_label = "Flip" _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
