Cylcic mesh infinte loop fix

- fixed a loop that occured when parent was set as a child of its
descendant