[Bf-blender-cvs] [5d274778f50] greasepencil-object: Fix: Don't show "Brush Appearance" panel in Edit Mode
Joshua Leung
noreply at git.blender.org
Wed Feb 7 09:01:06 CET 2018
Commit: 5d274778f50cacef0ec5f330bf6c2bcfe52d2946
Author: Joshua Leung
Date: Wed Feb 7 21:00:56 2018 +1300
Branches: greasepencil-object
https://developer.blender.org/rB5d274778f50cacef0ec5f330bf6c2bcfe52d2946
Fix: Don't show "Brush Appearance" panel in Edit Mode
===================================================================
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 13997e37094..1d5f1ed557d 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -2466,7 +2466,7 @@ class VIEW3D_PT_tools_grease_pencil_appearance(Panel):
if context.active_object:
ob = context.active_object
- return ob.mode in {'GPENCIL_EDIT', 'GPENCIL_PAINT', 'GPENCIL_SCULPT'}
+ return ob.mode in {'GPENCIL_PAINT', 'GPENCIL_SCULPT', 'GPENCIL_WEIGHT'}
return False
More information about the Bf-blender-cvs
mailing list