[Bf-blender-cvs] [4194ac20cdd] temp-lineart-contained: LineArt: Fix blank baking for when source type is object.

YimingWu noreply at git.blender.org
Sat Mar 20 14:00:58 CET 2021


Commit: 4194ac20cdd3baa37a20aa41de504849982c1e58
Author: YimingWu
Date:   Sat Mar 20 20:53:34 2021 +0800
Branches: temp-lineart-contained
https://developer.blender.org/rB4194ac20cdd3baa37a20aa41de504849982c1e58

LineArt: Fix blank baking for when source type is object.

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

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 e295a14557d..00fb85bd05d 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -1781,7 +1781,7 @@ static int lineart_usage_check(Collection *c, Object *ob, LineartRenderBuffer *_
   /* Temp solution to speed up calculation in the modifier without cache. See the definition of
    * rb->_source_type for details. */
   if (_rb->_source_type == LRT_SOURCE_OBJECT) {
-    if (ob != _rb->_source_object) {
+    if (ob != _rb->_source_object && ob->id.orig_id != _rb->_source_object) {
       return OBJECT_LRT_OCCLUSION_ONLY;
     }
   }



More information about the Bf-blender-cvs mailing list