[Bf-blender-cvs] [a404146] depsgraph_refactor: Depsgraph: Add early out from the scene update function
Sergey Sharybin
noreply at git.blender.org
Wed Feb 11 10:41:24 CET 2015
Commit: a404146578b73f5448f05ac02c62ecda07e6410b
Author: Sergey Sharybin
Date: Wed Feb 11 14:40:23 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rBa404146578b73f5448f05ac02c62ecda07e6410b
Depsgraph: Add early out from the scene update function
===================================================================
M source/blender/depsgraph/intern/depsgraph_eval.cpp
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cpp b/source/blender/depsgraph/intern/depsgraph_eval.cpp
index baa3a43..4f26bec 100644
--- a/source/blender/depsgraph/intern/depsgraph_eval.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_eval.cpp
@@ -289,6 +289,11 @@ void DEG_evaluate_on_refresh_ex(EvaluationContext *eval_ctx,
/* Generate base evaluation context, upon which all the others are derived. */
// TODO: this needs both main and scene access...
+ /* Nothing to update, early out. */
+ if (graph->entry_tags.size() == 0) {
+ return;
+ }
+
/* XXX could use a separate pool for each eval context */
DepsgraphEvalState state;
state.eval_ctx = eval_ctx;
More information about the Bf-blender-cvs
mailing list