diff options
author | YimingWu <xp8110@outlook.com> | 2022-01-14 16:42:52 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2022-01-14 16:43:52 +0300 |
commit | 0cf746c1faff31e6e97789ffdd46206112ac81db (patch) | |
tree | bb1763320fd398147a048dbd9c4bb824db0ae5f4 | |
parent | c0432d5edb23e1c6b70862895efa0599c47ec301 (diff) |
Fix T94878: LineArt crease threshold logic error.
A coding mistake allows default crease to override object crease, now fixed.
-rw-r--r-- | source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c index 2f82a22754d..f08d35891ce 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c @@ -1777,7 +1777,7 @@ static void lineart_geometry_object_load(LineartObjectInfo *obi, LineartRenderBu if (orig_ob->lineart.flags & OBJECT_LRT_OWN_CREASE) { use_crease = cosf(M_PI - orig_ob->lineart.crease_threshold); } - if (obi->original_me->flag & ME_AUTOSMOOTH) { + else if (obi->original_me->flag & ME_AUTOSMOOTH) { use_crease = cosf(obi->original_me->smoothresh); use_auto_smooth = true; } |