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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to