Commit: 3ae3d3c6f18f176af3fdd67065c7afcd319801c2
Author: Sergey Sharybin
Date:   Fri Feb 27 18:01:58 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rB3ae3d3c6f18f176af3fdd67065c7afcd319801c2

Depsgrpah: Fix for wrong check of object data was already created

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

M       source/blender/depsgraph/intern/depsgraph_build_nodes.cpp

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

diff --git a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp 
b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
index 111b5ad..ebd01df 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
@@ -244,9 +244,6 @@ void DepsgraphNodeBuilder::build_object(Scene *scene, Base 
*base, Object *ob)
        /* object data */
        if (ob->data) {
                ID *obdata = (ID *)ob->data;
-               /* ob data animation */
-               build_animdata(obdata);
-
                /* type-specific data... */
                switch (ob->type) {
                        case OB_MESH:     /* Geometry */
@@ -286,6 +283,9 @@ void DepsgraphNodeBuilder::build_object(Scene *scene, Base 
*base, Object *ob)
                                build_camera(ob);
                                break;
                }
+
+               /* ob data animation */
+               build_animdata(obdata);
        }
 
        /* Build animation data,

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to