[Bf-blender-cvs] [2a39f2595bf] master: Outliner: Simplify logic for parent nesting

Dalai Felinto noreply at git.blender.org
Sat Apr 20 03:28:16 CEST 2019


Commit: 2a39f2595bfa5b7fdfd751fb4fa435047c2b60fa
Author: Dalai Felinto
Date:   Fri Apr 19 19:02:05 2019 -0300
Branches: master
https://developer.blender.org/rB2a39f2595bfa5b7fdfd751fb4fa435047c2b60fa

Outliner: Simplify logic for parent nesting

===================================================================

M	source/blender/editors/space_outliner/outliner_tree.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list