[Bf-blender-cvs] [b043be3] depsgraph_refactor: Clear the "scheduled" flag after evaluation.
Lukas Tönne
noreply at git.blender.org
Wed Jun 4 20:11:08 CEST 2014
Commit: b043be34b134a3f3838f5f418ac8eb02de203675
Author: Lukas Tönne
Date: Wed Jun 4 19:59:26 2014 +0200
https://developer.blender.org/rBb043be34b134a3f3838f5f418ac8eb02de203675
Clear the "scheduled" flag after evaluation.
Not strictly necessary (gets cleared before next eval anyway),
but less confusing.
===================================================================
M source/blender/depsgraph/intern/depsgraph_eval.cpp
M source/blender/depsgraph/intern/depsgraph_tag.cpp
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cpp b/source/blender/depsgraph/intern/depsgraph_eval.cpp
index 3f263f5..a22960b 100644
--- a/source/blender/depsgraph/intern/depsgraph_eval.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_eval.cpp
@@ -154,7 +154,6 @@ static void calculate_eval_priority(OperationDepsNode *node)
node->eval_priority = 0.0f;
}
-
static void schedule_graph(DepsgraphTaskPool &pool, Depsgraph *graph, eEvaluationContextType context_type)
{
BLI_spin_lock(&threaded_update_lock);
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cpp b/source/blender/depsgraph/intern/depsgraph_tag.cpp
index 61b7295..8ebbeeb 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cpp
@@ -135,6 +135,7 @@ void DEG_graph_clear_tags(Depsgraph *graph)
/* clear node's "pending update" settings */
node->flag &= ~(DEPSOP_FLAG_DIRECTLY_MODIFIED | DEPSOP_FLAG_NEEDS_UPDATE);
node->num_links_pending = 0; /* reset so that it can be bumped up again */
+ node->scheduled = false;
}
/* clear any entry tags which haven't been flushed */
More information about the Bf-blender-cvs
mailing list