Fix T98847: missing null check in versioning code
It's perfectly legal for `nmd->settings.properties` to be null if there are no properties.
This commit is contained in:
parent
e6eefdd402
commit
49b068bc63
Notes:
blender-bot
2023-02-14 10:18:56 +01:00
Referenced by issue #98847, Regression: Blender 3.2 crashes when opening scene which worked in 3.1 Referenced by issue #98661, 3.2: Potential candidates for corrective releases
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue