[Bf-blender-cvs] [bcd5bd6cd51] eevee-rewrite: EEVEE: Fix double Stroke color in Panel
Antonio Vazquez
noreply at git.blender.org
Wed Oct 6 12:09:05 CEST 2021
Commit: bcd5bd6cd51146250341e78de2a34ff693cee154
Author: Antonio Vazquez
Date: Wed Oct 6 12:08:59 2021 +0200
Branches: eevee-rewrite
https://developer.blender.org/rBbcd5bd6cd51146250341e78de2a34ff693cee154
EEVEE: Fix double Stroke color in Panel
The stroke color was displayed in the side panel and this must be used only in 3D View.
===================================================================
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 c31881fa194..6ca13674234 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -591,7 +591,7 @@ class GreasePencilMaterialsPanel:
if len(ob.material_slots) > 0 and ob.active_material_index >= 0:
ma = ob.material_slots[ob.active_material_index].material
- if ma is not None and ma.grease_pencil is not None:
+ if is_view3d and ma is not None and ma.grease_pencil is not None:
gpcolor = ma.grease_pencil
if gpcolor.stroke_style == 'SOLID':
row = layout.row()
More information about the Bf-blender-cvs
mailing list