[Bf-blender-cvs] [8d13fe340b4] greasepencil-object: Color Palette must be visible always
Antonio Vazquez
noreply at git.blender.org
Tue Jun 6 20:42:28 CEST 2017
Commit: 8d13fe340b424bacee548ee0d7c164bc1b3c184c
Author: Antonio Vazquez
Date: Tue Jun 6 20:38:29 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB8d13fe340b424bacee548ee0d7c164bc1b3c184c
Color Palette must be visible always
===================================================================
M release/scripts/startup/bl_ui/properties_grease_pencil_common.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 7c8be59dc3c..14e51c06289 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -1112,17 +1112,7 @@ class GreasePencilPaletteColorPanel:
if paint is None:
return False
else:
- is_3d_view = context.space_data.type == 'VIEW_3D'
- if is_3d_view:
- # if not gpd, the user maybe want prepare color before drawing
- if context.gpencil_data is None:
- return True
- gpd = context.gpencil_data
- return bool(gpd.use_stroke_edit_mode or gpd.is_stroke_paint_mode)
- else:
- return True
-
- return False
+ return True
@staticmethod
def draw(self, context):
More information about the Bf-blender-cvs
mailing list