Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-06-04 12:33:41 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-06-04 12:43:27 +0300
commit30c0d780f9d9012e45db4553e8df1c9526f03b27 (patch)
tree372ee3f12ab9305218c2cb5a8f288e1a7d40c2fb /source/blender/depsgraph/intern/depsgraph_tag.cc
parent04bac387315ce09822c36bc20e0fe4e7d533fec8 (diff)
Depsgraph: Only run editors ID update on manual edits
This is how it worked in 2.79 and it is how it is expected to be working. Avoids unintended icons update during animation playback. Fixes T64318: Update of material icons during animation 2x performance penalty
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_tag.cc')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_tag.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index fc1c6be19af..2d4963e8fef 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -741,6 +741,8 @@ static void deg_graph_clear_id_node_func(void *__restrict data_v,
* the recalc flag. */
DEG::Depsgraph *deg_graph = reinterpret_cast<DEG::Depsgraph *>(data_v);
DEG::IDNode *id_node = deg_graph->id_nodes[i];
+
+ id_node->is_user_modified = false;
id_node->id_cow->recalc &= ~ID_RECALC_ALL;
/* Clear embedded node trees too. */