Outliner: Simplify logic for parent nesting

This commit is contained in:
Dalai Felinto
2019-04-19 19:02:05 -03:00
parent bc8b884e53
commit 2a39f2595b

View File

@@ -1470,10 +1470,7 @@ static void outliner_make_object_parent_hierarchy(ListBase *lb)
BLI_remlink(lb, te);
tep = (TreeElement *)ob->parent->id.newid;
BLI_addtail(&tep->subtree, te);
// set correct parent pointers
for (te = tep->subtree.first; te; te = te->next) {
te->parent = tep;
}
te->parent = tep;
}
}
te = ten;