Fix: handle unknown node types more gracefully

I found this assert to be not helpful a couple of times in the past already.
Now it was triggered again by #122928.
This commit is contained in:
Jacques Lucke
2024-06-14 11:46:11 +02:00
parent 086f6f07d9
commit 66e5004d95
2 changed files with 6 additions and 2 deletions

View File

@@ -2014,7 +2014,9 @@ void DepsgraphNodeBuilder::build_nodetree(bNodeTree *ntree)
build_nodetree(group_ntree);
}
else {
BLI_assert_msg(0, "Unknown ID type used for node");
/* Ignore this case. It can happen when the node type is not known currently. Either because
* it belongs to an add-on or because it comes from a different Blender version that does
* support the ID type here already. */
}
}

View File

@@ -3076,7 +3076,9 @@ void DepsgraphRelationBuilder::build_nodetree(bNodeTree *ntree)
}
}
else {
BLI_assert_msg(0, "Unknown ID type used for node");
/* Ignore this case. It can happen when the node type is not known currently. Either because
* it belongs to an add-on or because it comes from a different Blender version that does
* support the ID type here already. */
}
}