GPencil: Disable Lights when duplicate layer

Missing to disable default light ON when use separate operator.
This commit is contained in:
2021-06-21 16:59:09 +02:00
parent b9ccfb89ce
commit 47473bee34

View File

@@ -1126,6 +1126,9 @@ void BKE_gpencil_layer_copy_settings(const bGPDlayer *gpl_src, bGPDlayer *gpl_ds
if (gpl_src->flag & GP_LAYER_USE_LIGHTS) {
gpl_dst->flag |= GP_LAYER_USE_LIGHTS;
}
else {
gpl_dst->flag &= ~GP_LAYER_USE_LIGHTS;
}
}
/**