diff options
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c index c1a791d460b..7a6cefa4f0f 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c @@ -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) { |