LineArt: Fix crash due to empty duplicollection.
This commit is contained in:
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
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue