eval, handle relative paths
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user