[Bf-blender-cvs] [25a1b27a93e] blender-v2.93-release: LineArt: Fix crash due to empty duplicollection.
YimingWu
noreply at git.blender.org
Mon Jul 26 08:52:30 CEST 2021
Commit: 25a1b27a93ee406232194b2c09b0668c78209256
Author: YimingWu
Date: Fri Jun 11 17:55:12 2021 +0800
Branches: blender-v2.93-release
https://developer.blender.org/rB25a1b27a93ee406232194b2c09b0668c78209256
LineArt: Fix crash due to empty duplicollection.
===================================================================
M source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list