Commit: 1cdcb27dbbb2fc1ae4593045d3c8ce0bb443d3ef
Author: Mateusz Grzeliński
Date: Fri Aug 7 14:21:24 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rB1cdcb27dbbb2fc1ae4593045d3c8ce0bb443d3ef
Clog: always set start tick
It causes problems when printing timestamp in info editor
===================================================================
M intern/clog/clog.c
===================================================================
diff --git a/intern/clog/clog.c b/intern/clog/clog.c
index 8937d533a0f..301645fe678 100644
--- a/intern/clog/clog.c
+++ b/intern/clog/clog.c
@@ -712,9 +712,6 @@ static bool CLG_ctx_output_use_timestamp_get(CLogContext
*ctx)
static void CLG_ctx_output_use_timestamp_set(CLogContext *ctx, int value)
{
ctx->use_timestamp = (bool)value;
- if (ctx->use_timestamp) {
- ctx->timestamp_tick_start = clg_timestamp_ticks_get();
- }
}
/** Action on fatal severity. */
@@ -848,6 +845,7 @@ static CLogContext *CLG_ctx_init(void)
ctx->default_type.level = 0;
ctx->use_stdout = true;
ctx->always_show_warnings = true;
+ ctx->timestamp_tick_start = clg_timestamp_ticks_get();
/* enable all loggers by default */
CLG_ctx_type_filter_include(ctx, "*", strlen("*"));
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs