Fix T77192: Crash when opening bunny.blend file.
New depsgraph code handling drivers was not checking for possible NULL rna_path, as done everywhere else in code...
This commit is contained in:
parent
81f817e7b4
commit
428c0f9ad5
Notes:
blender-bot
2023-02-14 08:45:09 +01:00
Referenced by issue #77192, Crash when opening bunny.blend file
|
@ -2867,6 +2867,9 @@ void DepsgraphRelationBuilder::build_driver_relations(IDNode *id_node)
|
|||
DriverGroupMap driver_groups;
|
||||
|
||||
LISTBASE_FOREACH (FCurve *, fcu, &adt->drivers) {
|
||||
if (fcu->rna_path == NULL) {
|
||||
continue;
|
||||
}
|
||||
// Get the RNA path except the part after the last dot.
|
||||
char *last_dot = strrchr(fcu->rna_path, '.');
|
||||
string rna_prefix;
|
||||
|
@ -2917,7 +2920,7 @@ void DepsgraphRelationBuilder::build_driver_relations(IDNode *id_node)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace DEG
|
||||
|
||||
/* **** ID traversal callbacks functions **** */
|
||||
|
||||
|
|
Loading…
Reference in New Issue