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:
@@ -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. */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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. */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user