From 38d8e00d10d247b1fa1414b9e836ce1e06d7d8df Mon Sep 17 00:00:00 2001 From: jean-pierre charras <jp.charras@wanadoo.fr> Date: Sun, 7 Nov 2021 09:39:33 +0100 Subject: [PATCH] kicad2step, 3d_resolver: show a debug message only in DEBUG mode... --- utils/kicad2step/pcb/3d_resolver.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/kicad2step/pcb/3d_resolver.cpp b/utils/kicad2step/pcb/3d_resolver.cpp index c248ac91c5..73ec20f9ad 100644 --- a/utils/kicad2step/pcb/3d_resolver.cpp +++ b/utils/kicad2step/pcb/3d_resolver.cpp @@ -299,9 +299,11 @@ bool S3D_RESOLVER::addPath( const SEARCH_PATH& aPath ) if( !path.DirExists() ) { + // Show a message only in debug mode +#ifdef DEBUG if( aPath.m_Pathvar == "${KICAD6_3DMODEL_DIR}" - || aPath.m_Pathvar == "${KIPRJMOD}" || aPath.m_Pathvar == "$(KIPRJMOD)" - || aPath.m_Pathvar == "${KISYS3DMOD}" || aPath.m_Pathvar == "$(KISYS3DMOD)" ) + || aPath.m_Pathvar == "${KIPRJMOD}" + || aPath.m_Pathvar == "${KISYS3DMOD}" ) { // suppress the message if the missing pathvar is a system variable } @@ -312,6 +314,7 @@ bool S3D_RESOLVER::addPath( const SEARCH_PATH& aPath ) msg.append( tpath.m_Pathvar ); wxLogMessage( "%s\n", msg.ToUTF8() ); } +#endif tpath.m_Pathexp.clear(); }