Depsgraph: Replace LIB_TAG_DOIT with hash lookup
[blender.git] / source / blender / depsgraph / intern / builder / deg_builder_nodes_rig.cc
index 1a6b3f89f2642b20d2d5e82aeb043ac9e1a94206..63ffc95f336570bf6bf1bd51edc80fac4abe0879 100644 (file)
@@ -123,9 +123,8 @@ void DepsgraphNodeBuilder::build_rig(Object *object)
         *       Eventually, we need some type of proxy/isolation mechanism in-between here
         *       to ensure that we can use same rig multiple times in same scene...
         */
-       if ((arm->id.tag & LIB_TAG_DOIT) == 0) {
+       if (built_map_.checkIsBuilt(arm)) {
                build_animdata(&arm->id);
-
                /* Make sure pose is up-to-date with armature updates. */
                add_operation_node(&arm->id,
                                   DEG_NODE_TYPE_PARAMETERS,