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:
Omar Emara
2025-07-24 12:53:55 +02:00
committed by Omar Emara
parent e85de7a26b
commit dffb8366e0

View File

@@ -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;
}