Fix missing libraries reported as older than 2.50 data.

Missing libraries have no version info, but by definition their data
(placeholder IDs) always match current Blender version.
This commit is contained in:
Bastien Montagne
2025-10-01 15:33:33 +02:00
parent 7f94df2926
commit ee9d7fc9a3

View File

@@ -663,9 +663,13 @@ MainListsArray BKE_main_lists_get(Main &bmain);
((main)->versionfile < (ver) || \
((main)->versionfile == (ver) && (main)->subversionfile <= (subver)))
/* NOTE: in case versionfile is 0, this check is invalid, always return false then. This happens
* typically when a library is missing, by definition its data (placeholder IDs) does not need
* versionning anyway then. */
#define LIBRARY_VERSION_FILE_ATLEAST(lib, ver, subver) \
((lib)->runtime->versionfile > (ver) || \
((lib)->runtime->versionfile == (ver) && (lib)->runtime->subversionfile >= (subver)))
(((lib)->runtime->versionfile != 0) && \
((lib)->runtime->versionfile > (ver) || \
((lib)->runtime->versionfile == (ver) && (lib)->runtime->subversionfile >= (subver))))
/**
* The size of thumbnails (optionally) stored in the `.blend` files header.