{
#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)));
+ if (aSketch.get()) {
+ std::cout << "mouse move SKETCH FEATURES [" << 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("\n");
+ qDebug(QString("%1").arg(anInfo.size()).arg(anInfoStr).toStdString().c_str());
}
- 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))