From 0dbe381518ba8993c2c4fa0fcb3ddd8fe5b8479b Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 26 Apr 2019 10:16:30 +0300 Subject: [PATCH] An additional minor fix based on the issue #2917 issue script: to update some kind of construction points results before transaction is finished. --- src/ConstructionAPI/ConstructionAPI_Point.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/ConstructionAPI/ConstructionAPI_Point.cpp b/src/ConstructionAPI/ConstructionAPI_Point.cpp index 0029708af..d4f073f1b 100644 --- a/src/ConstructionAPI/ConstructionAPI_Point.cpp +++ b/src/ConstructionAPI/ConstructionAPI_Point.cpp @@ -166,13 +166,6 @@ void ConstructionAPI_Point::setByXYZ(const ModelHighAPI_Double& theX, const ModelHighAPI_Double& theY, const ModelHighAPI_Double& theZ) { - //fillAttribute(ConstructionPlugin_Point::CREATION_METHOD_BY_XYZ(), mycreationMethod); - - // TODO: Fill point attribute - //fillAttribute(theX, myx); - //fillAttribute(theY, myy); - //fillAttribute(theZ, myz); - fillAttribute(ConstructionPlugin_Point::CREATION_METHOD_BY_XYZ(), mycreationMethod); fillAttribute(theX, theY, theZ, mypoint); @@ -277,6 +270,8 @@ void ConstructionAPI_Point::setByCenterOfGravity(const ModelHighAPI_Selection& t fillAttribute(ConstructionPlugin_Point::GEOMETRICAL_PROPERTY_TYPE_BY_CENTER_OF_GRAVITY(), mygeometricalPropertyType); fillAttribute(theObject, myobjectForCenterOfGravity); + + execute(); } //================================================================================================== @@ -287,6 +282,8 @@ void ConstructionAPI_Point::setByCenterOfCircle(const ModelHighAPI_Selection& th fillAttribute(ConstructionPlugin_Point::GEOMETRICAL_PROPERTY_TYPE_BY_CENTER_OF_CIRCLE(), mygeometricalPropertyType); fillAttribute(theObject, myobjectForCenterOfCircle); + + execute(); } //================================================================================================== -- 2.39.2