Commit: 16b795cb95c8006993ebfd5398eca02bae6b75ea
Author: Mai Lavelle
Date: Mon Apr 9 21:39:10 2018 -0400
Branches: master
https://developer.blender.org/rB16b795cb95c8006993ebfd5398eca02bae6b75ea
Fix crash in graph editor id remapping
Dopsheet pointer isn't set...?
===================================================================
M source/blender/editors/space_graph/space_graph.c
===================================================================
diff --git a/source/blender/editors/space_graph/space_graph.c
b/source/blender/editors/space_graph/space_graph.c
index df6de83336d..530506e7c1d 100644
--- a/source/blender/editors/space_graph/space_graph.c
+++ b/source/blender/editors/space_graph/space_graph.c
@@ -686,7 +686,7 @@ static void graph_id_remap(ScrArea *UNUSED(sa), SpaceLink
*slink, ID *old_id, ID
if (sgraph->ads && (ID *)sgraph->ads->filter_grp == old_id) {
sgraph->ads->filter_grp = (Group *)new_id;
}
- if ((ID *)sgraph->ads->source == old_id) {
+ if (sgraph->ads && (ID *)sgraph->ads->source == old_id) {
sgraph->ads->source = new_id;
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs