Commit: 8cd775743d775947dce44172b2c5cb588152d03d
Author: Lukas Tönne
Date:   Mon Jun 2 11:35:15 2014 +0200
https://developer.blender.org/rB8cd775743d775947dce44172b2c5cb588152d03d

Fixes for release build stubs of debugging functions.

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

M       source/blender/depsgraph/DEG_depsgraph_debug.h
M       source/blender/depsgraph/intern/depsgraph_debug.cpp

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

diff --git a/source/blender/depsgraph/DEG_depsgraph_debug.h 
b/source/blender/depsgraph/DEG_depsgraph_debug.h
index 8ac8c9b..45f14b9 100644
--- a/source/blender/depsgraph/DEG_depsgraph_debug.h
+++ b/source/blender/depsgraph/DEG_depsgraph_debug.h
@@ -33,6 +33,8 @@
 extern "C" {
 #endif
 
+#include <stdio.h>
+
 #include "DNA_listBase.h"
 
 struct DepsgraphSettings;
diff --git a/source/blender/depsgraph/intern/depsgraph_debug.cpp 
b/source/blender/depsgraph/intern/depsgraph_debug.cpp
index 063623a..998b987 100644
--- a/source/blender/depsgraph/intern/depsgraph_debug.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_debug.cpp
@@ -26,7 +26,6 @@
  * Implementation of Querying and Filtering API's
  */
 
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -695,7 +694,6 @@ void DEG_debug_eval_end(void)
 
 void DEG_debug_eval_init(void *userdata, DEG_DebugEvalCb cb) {}
 void DEG_debug_eval_end(void) {}
-void DEG_debug_eval_step(const char *message) {}
 
 #endif /* DEG_DEBUG_BUILD */
 
@@ -733,8 +731,10 @@ void DepsgraphDebug::eval_end(eEvaluationContextType 
context_type)
 
 void DepsgraphDebug::eval_step(eEvaluationContextType context_type, const char 
*message)
 {
+#ifdef DEG_DEBUG_BUILD
        if (deg_debug_eval_cb)
                deg_debug_eval_cb(deg_debug_eval_userdata, message);
+#endif
 }
 
 void DepsgraphDebug::task_started(const DepsgraphTask &task)

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

Reply via email to