A pesky bug, this one is. (Said in best Yoda impression.)
There were two examples of the somewhat annoying error message. This gets the second one. Fixes: lp:1772255 * https://bugs.launchpad.net/kicad/+bug/1772255
This commit is contained in:
parent
5678a166ee
commit
3a8a718e43
|
@ -307,22 +307,6 @@ wxString S3D_FILENAME_RESOLVER::ResolvePath( const wxString& aFileName )
|
||||||
return tname;
|
return tname;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if a path begins with ${ENV_VAR}/$(ENV_VAR) and is not resolved then the
|
|
||||||
// file either does not exist or the ENV_VAR is not defined
|
|
||||||
if( aFileName.StartsWith( "${" ) || aFileName.StartsWith( "$(" ) )
|
|
||||||
{
|
|
||||||
if( !( m_errflags & ERRFLG_ENVPATH ) )
|
|
||||||
{
|
|
||||||
m_errflags |= ERRFLG_ENVPATH;
|
|
||||||
wxString errmsg = "[3D File Resolver] No such path; ensure the environment var is defined";
|
|
||||||
errmsg.append( "\n" );
|
|
||||||
errmsg.append( tname );
|
|
||||||
wxLogMessage( errmsg );
|
|
||||||
}
|
|
||||||
|
|
||||||
return wxEmptyString;
|
|
||||||
}
|
|
||||||
|
|
||||||
// at this point aFileName is:
|
// at this point aFileName is:
|
||||||
// a. an aliased shortened name or
|
// a. an aliased shortened name or
|
||||||
// b. cannot be determined
|
// b. cannot be determined
|
||||||
|
|
Loading…
Reference in New Issue