mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
GPencil: Fix unreported missing stroke color for 1st popover material
This commit is contained in:
parent
d9bce6bcf5
commit
ed079850cb
1 changed files with 1 additions and 1 deletions
|
|
@ -892,7 +892,7 @@ class GreasePencilMaterialsPanel:
|
|||
if is_view3d and brush is not None:
|
||||
gp_settings = brush.gpencil_settings
|
||||
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
|
||||
else:
|
||||
ma = gp_settings.material
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue