From: nds Date: Mon, 5 Dec 2016 11:22:07 +0000 (+0300) Subject: Issue #1913 check-box Auxiliary is missed for edited point in sketch X-Git-Tag: V_2.6.0~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9eb26e229bc5f9c46723ca4d5846eac379785e08;p=modules%2Fshaper.git Issue #1913 check-box Auxiliary is missed for edited point in sketch --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 8d004cded..667766244 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -625,6 +625,13 @@ bool PartSet_Module::createWidgets(ModuleBase_Operation* theOperation, // click on the digit of dimension constrain comes here // with an empty shape, so we need the check if (aFeature == anOpFeature && aShape.get() && !aShape->isNull()) { + // if feature has only one result and shape of result is equal to selected shape + // this attribute is not processed. It is a case of Sketch Point. + if (aFeature->results().size() == 1) { + ResultPtr aResult = aFeature->results().front(); + if (aResult.get() && aResult->shape()->isEqual(aShape)) + return aProcessed; + } const TopoDS_Shape& aTDShape = aShape->impl(); AttributePtr anAttribute = PartSet_Tools::findAttributeBy2dPoint(anObject, aTDShape, mySketchMgr->activeSketch()); diff --git a/src/PartSet/PartSet_WidgetPoint2d.cpp b/src/PartSet/PartSet_WidgetPoint2d.cpp index 64070b492..8c7d1031b 100644 --- a/src/PartSet/PartSet_WidgetPoint2d.cpp +++ b/src/PartSet/PartSet_WidgetPoint2d.cpp @@ -446,7 +446,8 @@ void PartSet_WidgetPoint2D::mouseReleased(ModuleBase_IViewWindow* theWindow, QMo aFirstValue = myPreSelected; } // if we have selection and use it - if (aFirstValue.get() && isValidSelectionCustom(aFirstValue)) { + if (aFirstValue.get() && isValidSelectionCustom(aFirstValue) && + aFirstValue->shape().get()) { /// Trihedron Axis may be selected, but shape is empty GeomShapePtr aGeomShape = aFirstValue->shape(); TopoDS_Shape aShape = aGeomShape->impl(); ObjectPtr aObject = aFirstValue->object();