[Bf-blender-cvs] [428c0f9ad57] blender-v2.83-release: Fix T77192: Crash when opening bunny.blend file.
Bastien Montagne
noreply at git.blender.org
Tue Jun 2 10:25:33 CEST 2020
Commit: 428c0f9ad57315cb23a9b50ada547654f34b9b5d
Author: Bastien Montagne
Date: Tue Jun 2 10:19:31 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB428c0f9ad57315cb23a9b50ada547654f34b9b5d
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...
===================================================================
M source/blender/depsgraph/intern/builder/deg_builder_relations.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index 9cd150fb8df..d9bb5d0aa9b 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -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 **** */
More information about the Bf-blender-cvs
mailing list