- NCollection_List<TopoDS_Shape> aShapes;
- std::list<ObjectPtr> aObjects;
- aSelection->selectedShapes(aShapes, aObjects);
- if (aShapes.Extent() > 0) {
- TopoDS_Shape aShape = aShapes.First();
- double aX, aY;
- if (getPoint2d(theWnd->v3dView(), aShape, aX, aY)) {
- setPoint(aX, aY);
-
- PartSet_Tools::setConstraints(mySketch, feature(), attributeID(),aX, aY);
- emit vertexSelected(aObjects.front(), aShape);
- emit focusOutWidget(this);
- return;
- }
- }
+ // TODO: This fragment doesn't work because bug in OCC Viewer. It can be used after fixing.
+ //NCollection_List<TopoDS_Shape> aShapes;
+ //std::list<ObjectPtr> aObjects;
+ //aSelection->selectedShapes(aShapes, aObjects);
+ //if (aShapes.Extent() > 0) {
+ // TopoDS_Shape aShape = aShapes.First();
+ // double aX, aY;
+ // if (getPoint2d(theWnd->v3dView(), aShape, aX, aY)) {
+ // setPoint(aX, aY);
+
+ // PartSet_Tools::setConstraints(mySketch, feature(), attributeID(),aX, aY);
+ // emit vertexSelected(aObjects.front(), aShape);
+ // emit focusOutWidget(this);
+ // return;
+ // }
+ //}
+ // End of Bug dependent fragment
+