Patch from Frederic Bouvier:
I have discovered recently that plib has ulIsAbsolutePathName in ul.lib so you can try this patch.
This commit is contained in:
parent
35f24baf32
commit
4d1e05804f
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#include <plib/sg.h>
|
#include <plib/sg.h>
|
||||||
#include <plib/ssg.h>
|
#include <plib/ssg.h>
|
||||||
|
#include <plib/ul.h>
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
|
@ -253,7 +254,7 @@ fgLoad3DModel (const string &path)
|
||||||
// Load the 3D aircraft object itself
|
// Load the 3D aircraft object itself
|
||||||
SGPath xmlpath;
|
SGPath xmlpath;
|
||||||
SGPath modelpath = path;
|
SGPath modelpath = path;
|
||||||
if ( path[ 0 ] == '/' || path[ 0 ] == '\\' || ( isalpha( path[ 0 ] ) && path[ 1 ] == ':' ) ) {
|
if ( ulIsAbsolutePathName( path.c_str() ) ) {
|
||||||
xmlpath = modelpath;
|
xmlpath = modelpath;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue