Issue was, parenting with operator, then unparenting would keep the inverse parent matrix. So if you then parented again through the mere Object field of Object buttons, you'd still use previous inver parent matrix, giving some weird behavior from user PoV. This commit simply makes sure inverse parent matrix is always reset to indentity when clearing parents.