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

This commit is contained in:
YimingWu 2021-03-20 20:53:34 +08:00 committed by Sebastian Parborg
parent b19bd3692d
commit 56da5ae2ac
Notes: blender-bot 2023-02-14 03:52:45 +01:00
Referenced by issue #86702, Applying Line Art modifier does not work with Object Line Art primitive.
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}