Fix #140082: Line Art: Use original object id to check dupli objects

In 884ef238c0 line art added a safe guard in depsgraph iterator to
properly handle dupli-objects, but it should check original objects id
for inclusion instead of evaluated objects. Now dupli-objects will show
up correctly.

Pull Request: https://projects.blender.org/blender/blender/pulls/140095
This commit is contained in:
YimingWu
2025-06-11 17:03:22 +02:00
committed by YimingWu
parent 9a4fdd9b86
commit ea9ab0ec04

View File

@@ -550,7 +550,9 @@ static void make_duplis_collection(const DupliContext *ctx)
}
if (ctx->include_objects) {
if (!ctx->include_objects->contains(cob)) {
Object *original_object = cob->id.orig_id ? reinterpret_cast<Object *>(cob->id.orig_id) :
cob;
if (!ctx->include_objects->contains(original_object)) {
continue;
}
}