Fix crash in id remapping of Graph editor.

dopsheet data pointer is not guaranteed to be set it seems...
This commit is contained in:
Bastien Montagne 2016-08-09 20:00:53 +02:00
parent 0433ae3026
commit c19d527ed8
Notes: blender-bot 2023-02-14 11:35:46 +01:00
Referenced by issue #49082, Crash when connecting nodes with to node group input or output
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}