diff options
author | YimingWu <xp8110@outlook.com> | 2021-03-20 15:53:34 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-03-20 16:07:51 +0300 |
commit | 56da5ae2ac9aafdbc9569a78075ee18f1ec528f1 (patch) | |
tree | 73b1a45eff2dd55e7d1ca84a572bbbad6f991148 /source/blender | |
parent | b19bd3692d79f6b5ccffb87bc0833c01ead4061a (diff) |
LineArt: Fix blank baking for when source type is object.
Diffstat (limited to 'source/blender')
-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 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; } } |