Pārlūkot izejas kodu

Refactor: Making a warning only visible in verbose mode, as it's too common and not important enough to spam the console

BearishSun 8 gadi atpakaļ
vecāks
revīzija
e8e803e50a

+ 1 - 1
Source/BansheeFBXImporter/BsFBXImporter.cpp

@@ -2145,7 +2145,7 @@ namespace bs
 
 		// Resample keys
 		if (!importOptions.animResample && forceResample)
-			LOGWRN("Animation has different keyframes for different curve components, forcing resampling.");
+			LOGWRN_VERBOSE("Animation has different keyframes for different curve components, forcing resampling.");
 
 		// Make sure to resample along the length of the entire clip
 		curveStart = std::min(curveStart, clipStart);

+ 2 - 2
Source/BansheeUtility/Debug/BsDebug.h

@@ -100,10 +100,10 @@ namespace bs
 #define LOGERR(x) bs::gDebug().logError((x) + String("\n\t\t in ") + __PRETTY_FUNCTION__ + " [" + __FILE__ + ":" + toString(__LINE__) + "]\n");
 
 /** Shortcut for logging a verbose message in the debug channel. Verbose messages can be ignored unlike other log messages. */
-#define LOGDBG_VERBOSE(x)
+#define LOGDBG_VERBOSE(x) ((void)0)
 
 /** Shortcut for logging a verbose message in the warning channel. Verbose messages can be ignored unlike other log messages. */
-#define LOGWRN_VERBOSE(x)
+#define LOGWRN_VERBOSE(x) ((void)0)
 
 	/** @} */
 }