[Bf-blender-cvs] [2c2516bfc92] master: Fix(unreported): LineArt curve objects garbled result.

YimingWu noreply at git.blender.org
Thu Sep 30 07:30:20 CEST 2021


Commit: 2c2516bfc92ba8fa0850ca6b6151dbc058b2cbce
Author: YimingWu
Date:   Thu Sep 30 13:23:17 2021 +0800
Branches: master
https://developer.blender.org/rB2c2516bfc92ba8fa0850ca6b6151dbc058b2cbce

Fix(unreported): LineArt curve objects garbled result.

This is caused by line art loading curve objects twice from curve and converted mesh instances (when instance option is on). Now only load mesh when instance option is on.

===================================================================

M	source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c

===================================================================

diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
index 5b878a4326f..7441c9a909c 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -2168,6 +2168,12 @@ static void lineart_main_load_geometries(
       use_mesh = use_ob->data;
     }
     else {
+      /* If DEG_ITER_OBJECT_FLAG_DUPLI is set, the curve objects are going to have a mesh
+       * equivalent already in the object list, so ignore converting the original curve in this
+       * case. */
+      if (allow_duplicates) {
+        continue;
+      }
       use_mesh = BKE_mesh_new_from_object(depsgraph, use_ob, true, true);
     }



More information about the Bf-blender-cvs mailing list