mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
LineArt: Fix crash due to empty duplicollection.
This commit is contained in:
parent
e9c8ae767a
commit
2f280d4b92
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue