Depsgraph: Show build time on --debug-depsgraph-time
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 15 Feb 2019 11:27:36 +0000 (12:27 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 15 Feb 2019 11:29:06 +0000 (12:29 +0100)
Previously was only shown on --debug-depsgraph-build which
had other unwanted noise.

source/blender/depsgraph/intern/depsgraph_build.cc

index 8720e40768155b5e4eae4517ed1ed2fa71d95460..7488428c5cce3a23f1e534db996ad0a2c225cd79 100644 (file)
@@ -285,7 +285,7 @@ void DEG_graph_build_from_view_layer(Depsgraph *graph,
        /* Relations are up to date. */
        deg_graph->need_update = false;
        /* Finish statistics. */
-       if (G.debug & G_DEBUG_DEPSGRAPH_BUILD) {
+       if (G.debug & (G_DEBUG_DEPSGRAPH_BUILD | G_DEBUG_DEPSGRAPH_TIME)) {
                printf("Depsgraph built in %f seconds.\n",
                       PIL_check_seconds_timer() - start_time);
        }