kicad2step, 3d_resolver: show a debug message only in DEBUG mode...

This commit is contained in:
jean-pierre charras 2021-11-07 09:39:33 +01:00
parent 4293caf00c
commit 38d8e00d10
1 changed files with 5 additions and 2 deletions

View File

@ -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();
}