Fix crash in id remapping of Graph editor.
dopsheet data pointer is not guaranteed to be set it seems...
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue