[Bf-blender-cvs] [2648ef562bc] greasepencil-object: GP: Hide topbar options for Cutter
Antonioya
noreply at git.blender.org
Thu Jan 3 16:41:31 CET 2019
Commit: 2648ef562bc633ef795565bc6b9ab07f95c0f34d
Author: Antonioya
Date: Thu Jan 3 12:12:56 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB2648ef562bc633ef795565bc6b9ab07f95c0f34d
GP: Hide topbar options for Cutter
===================================================================
M release/scripts/startup/bl_ui/space_topbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index d8c99537b11..077003bc6ae 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -299,9 +299,11 @@ class _draw_left_context_mode:
return
is_paint = True
- if (tool.name in {"Line", "Box", "Circle", "Arc", "Curve", "Cutter"}):
+ if tool.name in {"Line", "Box", "Circle", "Arc", "Curve"}:
is_paint = False
- elif (not tool.has_datablock):
+ elif not tool.has_datablock:
+ return
+ elif tool.name == "Cutter":
return
paint = context.tool_settings.gpencil_paint
More information about the Bf-blender-cvs
mailing list