[Bf-blender-cvs] [fc048122ce6] greasepencil-object: GPencil: Add Stroke Color to Popover panel

Antonioya noreply at git.blender.org
Fri May 3 10:16:56 CEST 2019


Commit: fc048122ce648811cede7c050a40133b3dd9ef13
Author: Antonioya
Date:   Fri May 3 10:16:19 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rBfc048122ce648811cede7c050a40133b3dd9ef13

GPencil: Add Stroke Color to Popover panel

===================================================================

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 734828bceaa..ecb4be02c30 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -886,6 +886,16 @@ class GreasePencilMaterialsPanel:
             space = context.space_data
             row.template_ID(space, "pin_id")
 
+        # stroke color
+        ma = context.material
+        if ma is not None and ma.grease_pencil is not None:
+            gpcolor = ma.grease_pencil
+            if gpcolor.stroke_style == 'SOLID' or \
+                gpcolor.use_stroke_pattern is True or \
+                gpcolor.use_stroke_texture_mix is True:
+                row = layout.row()
+                row.prop(gpcolor, "color", text="Color")
+
 
 class GPENCIL_UL_layer(UIList):
     def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index):



More information about the Bf-blender-cvs mailing list