fix [#36270] Crash with pinning

This commit is contained in:
Campbell Barton
2013-07-26 16:19:26 +00:00
parent b7dad0b5c6
commit bc84a50c13

View File

@@ -693,6 +693,14 @@ void BKE_object_unlink(Object *ob)
sbuts->pinid = NULL;
}
}
else if (sl->spacetype == SPACE_NODE) {
SpaceNode *snode = (SpaceNode *)sl;
if (snode->from == (ID *)ob) {
snode->flag &= ~SNODE_PIN;
snode->from = NULL;
}
}
}
sa = sa->next;