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;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to