EgtExecutor :
- aggiunto flag alla funzione EgtSurfBezierLeaves.
This commit is contained in:
+11
-5
@@ -1051,21 +1051,27 @@ LuaCreateSurfBezierRational( lua_State* L)
|
||||
static int
|
||||
LuaCreateSurfBezierLeaves( lua_State* L)
|
||||
{
|
||||
// 2, 3 o 4 parametri : ParentId, nId [, nTextHeight] [, bShowTrim]
|
||||
// 2, 3 o 4 parametri : ParentId, nId [, nTextHeight] [, bShowTrim] [, bRefined]
|
||||
int nParentId ;
|
||||
LuaCheckParam( L, 1, nParentId)
|
||||
int nSurfBzId ;
|
||||
LuaCheckParam( L, 2, nSurfBzId)
|
||||
int nTextHeight = 50 ;
|
||||
bool bShowTrim = false ;
|
||||
if ( LuaGetParam( L, 3, nTextHeight))
|
||||
LuaGetParam( L, 4, bShowTrim) ;
|
||||
else
|
||||
bool bRefined = false ;
|
||||
// testo più due booleani o solo due booleani
|
||||
if ( LuaGetParam( L, 3, nTextHeight)) {
|
||||
if ( LuaGetParam( L, 4, bShowTrim))
|
||||
LuaGetParam( L, 5, bRefined) ;
|
||||
}
|
||||
else {
|
||||
LuaGetParam( L, 3, bShowTrim) ;
|
||||
LuaGetParam( L, 4, bRefined) ;
|
||||
}
|
||||
LuaClearStack( L) ;
|
||||
// creo la superficie
|
||||
int nCount = 0 ;
|
||||
int nId = ExeCreateSurfBezierLeaves( nParentId, nSurfBzId, nTextHeight, bShowTrim, &nCount) ;
|
||||
int nId = ExeCreateSurfBezierLeaves( nParentId, nSurfBzId, nTextHeight, bShowTrim, bRefined, &nCount) ;
|
||||
// restituisco il risultato
|
||||
if ( nId != GDB_ID_NULL) {
|
||||
LuaSetParam( L, nId) ;
|
||||
|
||||
Reference in New Issue
Block a user