GPencil: Fix unreported missing stroke color for 1st popover material
This commit is contained in:
@@ -892,7 +892,7 @@ class GreasePencilMaterialsPanel:
|
|||||||
if is_view3d and brush is not None:
|
if is_view3d and brush is not None:
|
||||||
gp_settings = brush.gpencil_settings
|
gp_settings = brush.gpencil_settings
|
||||||
if gp_settings.use_material_pin is False:
|
if gp_settings.use_material_pin is False:
|
||||||
if ob.active_material_index > 0:
|
if ob.active_material_index >= 0:
|
||||||
ma = ob.material_slots[ob.active_material_index].material
|
ma = ob.material_slots[ob.active_material_index].material
|
||||||
else:
|
else:
|
||||||
ma = gp_settings.material
|
ma = gp_settings.material
|
||||||
|
Reference in New Issue
Block a user