Avoid calling `restoreTransObjects`, `resetTransModal`, `resetTransRestrictions` and `initSnapping` for each change. Also bring `applyMouseInput` close to the rest of the code.
Avoid calling `restoreTransObjects`, `resetTransModal`, `resetTransRestrictions` and `initSnapping` for each change. Also bring `applyMouseInput` close to the rest of the code.