diff options
author | Julian Eisel <julian@blender.org> | 2021-10-15 13:36:09 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-15 13:38:10 +0300 |
commit | da3946b7108dc43e2783031ad8d231b65c6145ff (patch) | |
tree | 0732866c230fcebb696124fdbca8f146f0c2fc0a | |
parent | aca38148ad56c27840de1ee6ebb7bd1841ab0ca4 (diff) |
Fix wrong DNA struct element lookup in versioning
The type of the element is `short`, not `int`. Harmless since this was checking
for a specific version anyway.
-rw-r--r-- | source/blender/blenloader/intern/versioning_300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index a89a5a9b989..af61447e5ad 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -1079,7 +1079,7 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) } FOREACH_NODETREE_END; - if (!DNA_struct_elem_find(fd->filesdna, "FileAssetSelectParams", "int", "import_type")) { + if (!DNA_struct_elem_find(fd->filesdna, "FileAssetSelectParams", "short", "import_type")) { LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) { LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) { |