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:
authorAntonio Vazquez <blendergit@gmail.com>2021-04-16 16:39:08 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-04-16 19:00:18 +0300
commit463b38b0e0b0eaa1eae732f5f3f034e7be9ea5da (patch)
tree908f742be9eb8e254c67b8d19cd06a7609f7c025 /release
parent0f81dafe6cecd17948e6a92fa2d1be9c473038e6 (diff)
GPencil: Remove Grease Pencil menu options in UV editor
Differential Revision: https://developer.blender.org/D10993
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py3
1 files changed, 2 insertions, 1 deletions
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"