[TD] Solve issue in VertexAtIntersection

This commit is contained in:
edi271
2024-01-15 13:50:39 +01:00
committed by WandererFan
parent 7d64c3af2f
commit 71df82dad3

View File

@@ -849,14 +849,13 @@ void CmdTechDrawExtensionVertexAtIntersection::activated(int iMsg)
// std::string ptId = objFeat->addCosmeticVertex(pt/scale);
// objFeat->add1CVToGV(ptId);
// invert the point so the math works correctly
Base::Vector3d temp = DrawUtil::invertY(pt);
temp = CosmeticVertex::makeCanonicalPoint(objFeat, temp);
Base::Vector3d temp = CosmeticVertex::makeCanonicalPoint(objFeat, pt);
objFeat->addCosmeticVertex(temp);
}
}
}
getSelection().clearSelection();
objFeat->refreshCEGeoms();
objFeat->refreshCVGeoms();
objFeat->requestPaint();
Gui::Command::commitCommand();
}