diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-19 14:37:57 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-19 14:37:57 +0300 |
commit | f62de28972ec4f6ceccfc363dc7b78bf248e391e (patch) | |
tree | d38e6278ff2cb3467e6d3c7b072f09704b5fd583 /source/blender/depsgraph/intern/depsgraph_tag.cc | |
parent | 6cbdde1ba1a4476d7f6dbec955adb4836f56e33d (diff) |
Depsgraph: Fix nexted node trees being tagged with wrong flag
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_tag.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc index aa75176db12..e0a424883f5 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.cc +++ b/source/blender/depsgraph/intern/depsgraph_tag.cc @@ -313,9 +313,10 @@ void deg_graph_id_tag_update(Main *bmain, Depsgraph *graph, ID *id, int flag) id_node->tag_update(graph); } } - while (flag != 0) { + int current_flag = flag; + while (current_flag != 0) { eDepsgraph_Tag tag = - (eDepsgraph_Tag)(1 << bitscan_forward_clear_i(&flag)); + (eDepsgraph_Tag)(1 << bitscan_forward_clear_i(¤t_flag)); deg_graph_id_tag_update_single_flag(bmain, graph, id, |