update pos hint on region change

This commit is contained in:
Vaxry 2024-03-02 15:15:09 +00:00
parent 39625d9e24
commit ed3842a81b
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ void CConstraint::onSetRegion() {
return;
m_rRegion.set(&m_pConstraint->region);
m_vPositionHint = m_rRegion.closestPoint(m_vPositionHint);
g_pInputManager->simulateMouseMovement(); // to warp the cursor if anything's amiss
}
@ -117,4 +118,4 @@ void CConstraint::activate() {
bool CConstraint::active() {
return m_bActive;
}
}