[Bf-blender-cvs] [73967e2047b] master: Fix undeclared identifiers with 'DEBUG_TIME'

Germano Cavalcante noreply at git.blender.org
Mon May 31 21:28:25 CEST 2021


Commit: 73967e2047b7d46168355a7158cd1c40d20afc4e
Author: Germano Cavalcante
Date:   Mon May 31 16:28:00 2021 -0300
Branches: master
https://developer.blender.org/rB73967e2047b7d46168355a7158cd1c40d20afc4e

Fix undeclared identifiers with 'DEBUG_TIME'

These identifiers were accidentally removed in rB44d2479dc36f.

===================================================================

M	source/blender/draw/intern/draw_cache_extract_mesh.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.c b/source/blender/draw/intern/draw_cache_extract_mesh.c
index 1a78ce71d74..a2ec3e4e94e 100644
--- a/source/blender/draw/intern/draw_cache_extract_mesh.c
+++ b/source/blender/draw/intern/draw_cache_extract_mesh.c
@@ -6327,6 +6327,10 @@ void mesh_buffer_cache_create_requested(struct TaskGraph *task_graph,
     return;
   }
 
+#ifdef DEBUG_TIME
+  double rdata_start = PIL_check_seconds_timer();
+#endif
+
   eMRIterType iter_type;
   eMRDataType data_flag;
   extracts_flags_get(&extractors, &iter_type, &data_flag);
@@ -6347,7 +6351,7 @@ void mesh_buffer_cache_create_requested(struct TaskGraph *task_graph,
   mr->use_final_mesh = do_final;
 
 #ifdef DEBUG_TIME
-  rdata_end = PIL_check_seconds_timer();
+  double rdata_end = PIL_check_seconds_timer();
 #endif
 
   struct TaskNode *task_node_mesh_render_data = mesh_extract_render_data_node_create(



More information about the Bf-blender-cvs mailing list