Fix #114582: Replace unknown node types with an 'undefined' node #114783

Merged
Lukas Tönne merged 5 commits from LukasTonne/blender:replace-unknown-node-types into blender-v3.3-release 2023-11-13 16:20:51 +01:00

5 Commits

Author SHA1 Message Date
Lukas Tönne a985d75f8e Cleanup: simpler return expression.
buildbot/vexp-code-patch-coordinator Build done. Details
2023-11-13 15:45:02 +01:00
Lukas Tönne 26c28021ae Cleanup: remove "static" from comment. 2023-11-13 13:58:16 +01:00
Lukas Tönne 7f2917c0ba Cleanup comments. 2023-11-13 13:48:47 +01:00
Lukas Tönne 8976dc9754 Use a static Set to avoid linear node type search on file read. 2023-11-13 13:44:00 +01:00
Lukas Tönne 3f668072ee Fix #114582: Replace unknown node types with an 'undefined' node.
When loading an unknown node type from a newer Blender version, the node
storage data cannot be properly loaded. Re-saving the file will then
crash if saving with the same node type idname, since new Blender
versions cannot find the expected storage data.

Loading in older versions should replace unknown node types with a dummy
"Undefined" node that will get loaded as `NodeTypeUndefined` in newer
versions as well. Custom node types are exempted from this since they
store all data as generic ID properties and can always be fully
serialized.
2023-11-13 11:53:49 +01:00