diff options
author | Jacques Lucke <jacques@blender.org> | 2022-06-16 17:23:26 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-06-22 13:24:10 +0300 |
commit | 9641767affd9cbccdab6e69d1a9a48299b841d20 (patch) | |
tree | 167e96054baff52d8b2b7690a3f4b46fefcab866 | |
parent | 05d659e55e4702606a3ba7d508033036db6c246b (diff) |
Fix T98847: missing null check in versioning code
It's perfectly legal for `nmd->settings.properties` to be null if
there are no properties.
-rw-r--r-- | source/blender/blenloader/intern/versioning_300.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index e6a214452fe..d2112e27836 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -1000,6 +1000,9 @@ static void do_version_subsurface_methods(bNode *node) static void version_geometry_nodes_add_attribute_input_settings(NodesModifierData *nmd) { + if (nmd->settings.properties == NULL) { + return; + } /* Before versioning the properties, make sure it hasn't been done already. */ LISTBASE_FOREACH (const IDProperty *, property, &nmd->settings.properties->data.group) { if (strstr(property->name, "_use_attribute") || strstr(property->name, "_attribute_name")) { |