EgtExecutor :

- corrette funzioni ExeAddCurveCompoLine, ExeAddCurveCompoArcTg e ExeAddCurveCompoArc2P che non portavano in locale alla curva il punto finale.
This commit is contained in:
Dario Sassi
2020-08-26 14:59:29 +00:00
parent 3329d092f0
commit 6c1c3c3478
+3 -3
View File
@@ -1500,7 +1500,7 @@ ExeAddCurveCompoLine( int nId, const Point3d& ptP, int nRefType)
// porto in locale il nuovo punto
Point3d ptPL = GetPointLocal( pGeomDB, ptP, nRefType, frLoc) ;
// eseguo la modifica
bOk = bOk && pCompo->AddLine( ptP) ;
bOk = bOk && pCompo->AddLine( ptPL) ;
ExeSetModified() ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {
@@ -1530,7 +1530,7 @@ ExeAddCurveCompoArcTg( int nId, const Point3d& ptP, int nRefType)
// porto in locale il nuovo punto
Point3d ptPL = GetPointLocal( pGeomDB, ptP, nRefType, frLoc) ;
// eseguo la modifica
bOk = bOk && pCompo->AddArcTg( ptP) ;
bOk = bOk && pCompo->AddArcTg( ptPL) ;
ExeSetModified() ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {
@@ -1561,7 +1561,7 @@ ExeAddCurveCompoArc2P( int nId, const Point3d& ptMid, const Point3d& ptP, int nR
Point3d ptMidL = GetPointLocal( pGeomDB, ptMid, nRefType, frLoc) ;
Point3d ptPL = GetPointLocal( pGeomDB, ptP, nRefType, frLoc) ;
// eseguo la modifica
bOk = bOk && pCompo->AddArc2P( ptMidL, ptP) ;
bOk = bOk && pCompo->AddArc2P( ptMidL, ptPL) ;
ExeSetModified() ;
// se richiesto, salvo il comando Lua equivalente
if ( IsCmdLog()) {