EgtExecutor :

- modifica parametri funzione ExportThreeJS.
This commit is contained in:
riccardo.elitropi
2022-09-01 11:20:52 +02:00
parent 7aaebee637
commit 221bb0db99
2 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -559,7 +559,7 @@ ExeExportSvg( int nId, const string& sFilePath, int nFilter)
//-----------------------------------------------------------------------------
bool
ExeExportThreeJS( int nId, const string& sFilePath, const string& sFilePathM)
ExeExportThreeJS( int nId, const string& sFilePath)
{
IEGrScene* pScene = GetCurrScene();
VERIFY_SCENE(pScene, false) ;
@@ -571,7 +571,7 @@ ExeExportThreeJS( int nId, const string& sFilePath, const string& sFilePathM)
PtrOwner<IExportThreeJS> pExpThreeJS( MyCreateExportThreeJS()) ;
bOk = bOk && ! IsNull( pExpThreeJS) ;
// eseguo l'esportazione
bOk = bOk && pExpThreeJS->Export( pGeomDB, nId, sFilePath, sFilePathM, pScene) ;
bOk = bOk && pExpThreeJS->Export( pGeomDB, nId, sFilePath, pScene) ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {
string sLua = "EgtExportThreeJS(" + ToString( nId) + ",'" +
+1 -3
View File
@@ -233,11 +233,9 @@ LuaExportThreeJS( lua_State* L)
LuaCheckParam( L, 1, nGroupId)
string sFilePath ;
LuaCheckParam( L, 2, sFilePath)
string sFilePathM;
LuaCheckParam(L, 3, sFilePathM)
LuaClearStack( L) ;
// creo il file
bool bOk = ExeExportThreeJS( nGroupId, sFilePath, sFilePathM) ;
bool bOk = ExeExportThreeJS( nGroupId, sFilePath) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;