1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0032604: Visualization, AIS_LightSource - improve dragging robustness

This commit is contained in:
kgv
2021-10-04 13:26:35 +03:00
committed by smoskvin
parent 956d91571c
commit f9ae10ed21
3 changed files with 16 additions and 9 deletions

View File

@@ -58,6 +58,12 @@ public:
//! Returns the position of detected point on the sphere.
const gp_Pnt& LastDetectedPoint() const { return myLastDetectedPoint; }
//! Invalidate the position of detected point on the sphere.
void ResetLastDetectedPoint()
{
myLastDetectedPoint = gp_Pnt (RealLast(), RealLast(), RealLast());
}
protected:
gp_Pnt myCenter;
gp_Pnt myLastDetectedPoint;