Merge branch 'master' into 5AxTrimming

This commit is contained in:
Daniele Bariletti
2026-05-19 16:40:59 +02:00
3 changed files with 28 additions and 0 deletions
+10
View File
@@ -842,6 +842,16 @@ ExeGetAllInfo( int nId, STRVECTOR& vsInfo)
return pGeomDB->GetAllInfo( nId, vsInfo) ;
}
//-----------------------------------------------------------------------------
bool
ExeCopyAllInfoFrom( int nId, int nSouId)
{
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, false)
// copio tutte le info
return pGeomDB->CopyAllInfoFrom( nId, nSouId) ;
}
//-----------------------------------------------------------------------------
bool
ExeSetTextureName( int nId, const string& sTxrName)
BIN
View File
Binary file not shown.
+18
View File
@@ -693,6 +693,23 @@ LuaGetAllInfo( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaCopyAllInfoFrom( lua_State* L)
{
// 2 parametri : Id, SouId
int nId ;
LuaCheckParam( L, 1, nId)
int nSouId ;
LuaCheckParam( L, 2, nSouId)
LuaClearStack( L) ;
// copio tutte le info
bool bOk = ExeCopyAllInfoFrom( nId, nSouId) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaSetTextureName( lua_State* L)
@@ -840,6 +857,7 @@ LuaInstallGdbObjAttribs( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtExistsInfo", LuaExistsInfo) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtRemoveInfo", LuaRemoveInfo) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetAllInfo", LuaGetAllInfo) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtCopyAllInfoFrom", LuaCopyAllInfoFrom) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtSetTextureName", LuaSetTextureName) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtSetTextureFrame", LuaSetTextureFrame) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtRemoveTextureData", LuaRemoveTextureData) ;