LineArt: Fix crash due to empty duplicollection.

This commit is contained in:
YimingWu 2021-06-11 17:55:12 +08:00 committed by Jeroen Bakker
parent 81e12cd9b1
commit 25a1b27a93
Notes: blender-bot 2023-02-14 04:20:36 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
1 changed files with 3 additions and 0 deletions

View File

@ -198,6 +198,9 @@ static void add_this_collection(Collection *c,
const ModifierUpdateDepsgraphContext *ctx,
const int mode)
{
if (!c) {
return;
}
FOREACH_COLLECTION_VISIBLE_OBJECT_RECURSIVE_BEGIN (c, ob, mode) {
if (ELEM(ob->type, OB_MESH, OB_MBALL, OB_CURVE, OB_SURF, OB_FONT)) {
if (ob->lineart.usage != OBJECT_LRT_EXCLUDE) {