Fix: Run node link pointer repair again

Run the versioning added in dbf777569b.
Another file from #147694 has this issue.

Pull Request: https://projects.blender.org/blender/blender/pulls/147737
This commit is contained in:
Hans Goudey
2025-10-09 19:08:37 +02:00
committed by Hans Goudey
parent dc95ec9830
commit 8a98c6992f
2 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@
/* Blender file format version. */
#define BLENDER_FILE_VERSION BLENDER_VERSION
#define BLENDER_FILE_SUBVERSION 108
#define BLENDER_FILE_SUBVERSION 109
/* Minimum Blender version that supports reading file written with the current
* version. Older Blender versions will test this and cancel loading the file, showing a warning to

View File

@@ -3600,12 +3600,6 @@ void blo_do_versions_500(FileData *fd, Library * /*lib*/, Main *bmain)
}
}
if (!MAIN_VERSION_FILE_ATLEAST(bmain, 500, 69)) {
LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) {
repair_node_link_node_pointers(*fd, *ntree);
}
}
if (!MAIN_VERSION_FILE_ATLEAST(bmain, 500, 71)) {
LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
scene->toolsettings->uvsculpt.size *= 2;
@@ -3978,6 +3972,12 @@ void blo_do_versions_500(FileData *fd, Library * /*lib*/, Main *bmain)
}
}
if (!MAIN_VERSION_FILE_ATLEAST(bmain, 500, 109)) {
LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) {
repair_node_link_node_pointers(*fd, *ntree);
}
}
/**
* Always bump subversion in BKE_blender_version.h when adding versioning
* code here, and wrap it inside a MAIN_VERSION_FILE_ATLEAST check.