eval, handle relative paths

This commit is contained in:
Glenn Maynard
2005-10-12 02:44:49 +00:00
parent 0c9afb67b2
commit ac601d932a
+5
View File
@@ -123,6 +123,11 @@ retry:
if( pNode->GetAttrValue( "Texture", sTextureFile ) )
{
sPath = sDir + sTextureFile;
LuaHelpers::RunAtExpressionS( sTextureFile );
bool bIsAbsolutePath = sTextureFile.Left(1) == "/";
sPath = bIsAbsolutePath ? sTextureFile : sDir+sTextureFile;
CollapsePath( sPath );
}