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

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