Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-06-16 17:23:26 +0300
committerJacques Lucke <jacques@blender.org>2022-06-16 17:23:45 +0300
commit49b068bc639ce5e16a8d700beff2902ed266b74e (patch)
tree2cca8041c3b536e19fe5ca452e0e0b0f2e027c95
parente6eefdd4020e3a9968c48b55967e4bf512b322ef (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.c3
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 57240b93ab1..97b414d4b4a 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -1001,6 +1001,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")) {