Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2021-06-18 17:47:08 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-06-18 17:47:08 +0300
commit4998ceebfcad5369a530164da629b8e8796f4999 (patch)
tree6b6f9967e5778b470756d349ef1f8ec83b114c2e /source/blender/blenkernel/intern/gpencil.c
parent408726000a2720282563602e17d892a87b90e5f1 (diff)
GPencil: Missed flag in previous Copy Settings commit
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil.c')
-rw-r--r--source/blender/blenkernel/intern/gpencil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 4324287caf2..f0dda488216 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -1122,6 +1122,10 @@ void BKE_gpencil_layer_copy_settings(const bGPDlayer *gpl_src, bGPDlayer *gpl_ds
copy_v3_v3(gpl_dst->scale, gpl_src->scale);
copy_m4_m4(gpl_dst->layer_mat, gpl_src->layer_mat);
copy_m4_m4(gpl_dst->layer_invmat, gpl_src->layer_invmat);
+ /* Use Lights flag. */
+ if (gpl_src->flag & GP_LAYER_USE_LIGHTS) {
+ gpl_dst->flag |= GP_LAYER_USE_LIGHTS;
+ }
}
/**