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):

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to