LineArt: Fix crash due to empty duplicollection.
This commit is contained in:
parent
e9c8ae767a
commit
2f280d4b92
Notes:
blender-bot
2023-02-14 11:18:07 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #89838, Crash when editing a Collection Instance referenced by Line Art object
|
@ -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