Depsgraph: Use proper tag source for special case
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 11 Feb 2019 14:16:38 +0000 (15:16 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 11 Feb 2019 14:24:11 +0000 (15:24 +0100)
Special case of handling update tag of 0 was using wrong update
source, causing unwanted point cache resets on file load.

source/blender/depsgraph/intern/depsgraph_tag.cc

index adadd9b..474bbd7 100644 (file)
@@ -460,7 +460,7 @@ void deg_graph_node_tag_zero(Main *bmain,
                if (comp_node->type == NodeType::ANIMATION) {
                        continue;
                }
-               comp_node->tag_update(graph, DEG_UPDATE_SOURCE_USER_EDIT);
+               comp_node->tag_update(graph, update_source);
        }
        GHASH_FOREACH_END();
        deg_graph_id_tag_legacy_compat(