diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-04-20 01:02:05 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-04-20 04:27:44 +0300 |
commit | 2a39f2595bfa5b7fdfd751fb4fa435047c2b60fa (patch) | |
tree | 6c4f517e6688c686d546cee0216e3bf2c5f57a4d | |
parent | bc8b884e532512f81a71368e5e55f1241e0bf135 (diff) |
Outliner: Simplify logic for parent nesting
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index 6b24e83e8ee..58585d3c99d 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -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; |