From: nds Date: Mon, 29 Aug 2016 05:48:47 +0000 (+0300) Subject: 1692: Correction for the next wrong case: edit Sketch_2, start Line, select 1st point... X-Git-Tag: V_2.5.0~124 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5748c55c03e4333d41f85bfffda9709c94d57cf3;p=modules%2Fshaper.git 1692: Correction for the next wrong case: edit Sketch_2, start Line, select 1st point, select 2nd point on line, move mouse, a new created line is coincident to Origin. --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index a46d07f9d..24256731d 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -93,6 +93,7 @@ //#define DEBUG_DO_NOT_BY_ENTER //#define DEBUG_SKETCHER_ENTITIES +//#define DEBUG_SKETCH_ENTITIES_ON_MOVE //#define DEBUG_CURSOR @@ -439,6 +440,18 @@ void PartSet_SketcherMgr::onMouseReleased(ModuleBase_IViewWindow* theWnd, QMouse void PartSet_SketcherMgr::onMouseMoved(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent) { +#ifdef DEBUG_SKETCH_ENTITIES_ON_MOVE + CompositeFeaturePtr aSketch = activeSketch(); + std::cout << "SKETCH FEATURES (before split) [" << aSketch->numberOfSubs() << "]:" << std::endl; + QStringList anInfo; + for (int i = 0, aNbSubs = aSketch->numberOfSubs(); i < aNbSubs; i++) { + //std::cout << getFeatureInfo(aSketch->subFeature(i), false) << std::endl; + anInfo.append(ModuleBase_Tools::objectInfo(aSketch->subFeature(i))); + } + QString anInfoStr = anInfo.join(";\t"); + qDebug(QString("onFeatureUpdatedMsg: %1, %2").arg(anInfo.size()).arg(anInfoStr).toStdString().c_str()); +#endif + if (myModule->sketchReentranceMgr()->processMouseMoved(theWnd, theEvent)) return;