Fix #142954: Crash when opening file with undefined Translate node
Blender crashes when opening a file with undefined Translate nodes due to a missing storage. The crash happens during versioning, as the nodes are not yet undefined at this point. To fix this, we make the versioning code more corruption proof and skip versioning nodes with no storage. Pull Request: https://projects.blender.org/blender/blender/pulls/143055
This commit is contained in:
@@ -3221,6 +3221,10 @@ static void do_version_translate_node_remove_relative(bNodeTree *node_tree)
|
||||
}
|
||||
|
||||
const NodeTranslateData *data = static_cast<NodeTranslateData *>(node->storage);
|
||||
if (!data) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!bool(data->relative)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user