Skip to content
Snippets Groups Projects
Commit ea01b24b authored by Campbell Barton's avatar Campbell Barton
Browse files

Fix T39623: deleting an object crashes

parent 95b25e73
Branches
Tags
No related merge requests found
......@@ -894,7 +894,7 @@ void BKE_animdata_main_cb(Main *mainptr, ID_AnimData_Edit_Callback func, void *u
AnimData *adt = BKE_animdata_from_id(id); \
NtId_Type *ntp = (NtId_Type *)id; \
if (ntp->nodetree) { \
AnimData *adt2 = BKE_animdata_from_id((ID *)ntp); \
AnimData *adt2 = BKE_animdata_from_id((ID *)ntp->nodetree); \
if (adt2) func(id, adt2, user_data); \
} \
if (adt) func(id, adt, user_data); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment