LineArt: Fix crash due to empty duplicollection.

This commit is contained in:
YimingWu
2021-06-11 17:55:12 +08:00
parent e9c8ae767a
commit 2f280d4b92

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) {