Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2019-04-20 01:02:05 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-04-20 04:27:44 +0300
commit2a39f2595bfa5b7fdfd751fb4fa435047c2b60fa (patch)
tree6c4f517e6688c686d546cee0216e3bf2c5f57a4d /source/blender
parentbc8b884e532512f81a71368e5e55f1241e0bf135 (diff)
Outliner: Simplify logic for parent nesting
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_outliner/outliner_tree.c5
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;