Commit: c19d527ed86aaa2a43581e2099e82b89b5fe4f23
Author: Bastien Montagne
Date:   Tue Aug 9 20:00:53 2016 +0200
Branches: master
https://developer.blender.org/rBc19d527ed86aaa2a43581e2099e82b89b5fe4f23

Fix crash in id remapping of Graph editor.

dopsheet data pointer is not guaranteed to be set it seems...

===================================================================

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 2582ba4..b35d1b2 100644
--- a/source/blender/editors/space_graph/space_graph.c
+++ b/source/blender/editors/space_graph/space_graph.c
@@ -687,7 +687,7 @@ static void graph_id_remap(ScrArea *UNUSED(sa), SpaceLink 
*slink, ID *old_id, ID
                return;
        }
 
-       if ((ID *)sgraph->ads->filter_grp == old_id) {
+       if (sgraph->ads && (ID *)sgraph->ads->filter_grp == old_id) {
                sgraph->ads->filter_grp = (Group *)new_id;
        }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to