From 16b795cb95c8006993ebfd5398eca02bae6b75ea Mon Sep 17 00:00:00 2001 From: Mai Lavelle Date: Mon, 9 Apr 2018 21:39:10 -0400 Subject: Fix crash in graph editor id remapping Dopsheet pointer isn't set...? --- source/blender/editors/space_graph/space_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3