diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-10-31 00:42:06 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-10-31 00:42:16 +0300 |
commit | ed079850cb55de1c2cf41571e52eec6ebb34b27e (patch) | |
tree | 8beaac3eb7a5708d735dac46219777059728875b /release/scripts/startup/bl_ui/properties_grease_pencil_common.py | |
parent | d9bce6bcf5bcc1c34d6e24adcc8babe757ae827d (diff) |
GPencil: Fix unreported missing stroke color for 1st popover material
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 e545ee971d8..b6db3cf0b97 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -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 |