diff options
author | Mai Lavelle <mai.lavelle@gmail.com> | 2018-04-10 04:39:10 +0300 |
---|---|---|
committer | Mai Lavelle <mai.lavelle@gmail.com> | 2018-04-10 04:40:52 +0300 |
commit | 16b795cb95c8006993ebfd5398eca02bae6b75ea (patch) | |
tree | 22f08a5edf1eb8cabf736907f386b3356815a87d | |
parent | 77e9193c23176a8143c1a01434b57594e0b0a8f4 (diff) |
Fix crash in graph editor id remapping
Dopsheet pointer isn't set...?
-rw-r--r-- | source/blender/editors/space_graph/space_graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |