Disable autopanning when starting certain tools
Tools preserve their state between runs, so it could happen that activating a tool restores the state when autopanning is enabled, even though it should not be.
This commit is contained in:
parent
11d8b9ff55
commit
104b606ca9
|
@ -1149,6 +1149,7 @@ int EDIT_TOOL::MeasureTool( const TOOL_EVENT& aEvent )
|
|||
|
||||
controls.ShowCursor( true );
|
||||
controls.SetSnapping( true );
|
||||
controls.SetAutoPan( false );
|
||||
|
||||
while( auto evt = Wait() )
|
||||
{
|
||||
|
|
|
@ -227,6 +227,7 @@ void POINT_EDITOR::Reset( RESET_REASON aReason )
|
|||
{
|
||||
m_editPoints.reset();
|
||||
m_altConstraint.reset();
|
||||
getViewControls()->SetAutoPan( false );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue