diff options
author | YimingWu <xp8110@outlook.com> | 2021-06-11 12:55:12 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-07-26 09:36:55 +0300 |
commit | 25a1b27a93ee406232194b2c09b0668c78209256 (patch) | |
tree | cfe4b946900fb9aadcbce50076479b858851116f | |
parent | 81e12cd9b1233014f18c527fbcea39ad6e9bb414 (diff) |
LineArt: Fix crash due to empty duplicollection.
-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) { |