[Bf-blender-cvs] [974f2b6cfdd] greasepencil-object: U: Show grease pencil paper options in any GP mode
Antonio Vazquez
noreply at git.blender.org
Fri Jul 6 15:37:50 CEST 2018
Commit: 974f2b6cfdd7b00b82f6a63168e9103f2cd4e9a2
Author: Antonio Vazquez
Date: Fri Jul 6 15:37:43 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB974f2b6cfdd7b00b82f6a63168e9103f2cd4e9a2
U: Show grease pencil paper options in any GP mode
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 574e0052a17..3fad7a5af68 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4253,7 +4253,7 @@ class VIEW3D_PT_overlay_gpencil_paper(Panel):
@classmethod
def poll(cls, context):
- return context.mode in {'GPENCIL_PAINT', 'GPENCIL_SCULPT', 'GPENCIL_EDIT'}
+ return context.object and context.object.type == 'GPENCIL'
def draw_header(self, context):
view = context.space_data
More information about the Bf-blender-cvs
mailing list