Changed reaction of SELECTION_TOOL to ToolCancel event (first event clears selection, second one deactivates the tool).
This commit is contained in:
parent
166879a1c8
commit
68125a7f50
|
@ -72,7 +72,12 @@ int SELECTION_TOOL::Main( TOOL_EVENT& aEvent )
|
||||||
m_additive = evt->Modifier( MD_ModShift );
|
m_additive = evt->Modifier( MD_ModShift );
|
||||||
|
|
||||||
if( evt->IsCancel() )
|
if( evt->IsCancel() )
|
||||||
|
{
|
||||||
|
if( !m_selectedItems.empty() )
|
||||||
|
clearSelection();
|
||||||
|
else
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// single click? Select single object
|
// single click? Select single object
|
||||||
if( evt->IsClick( MB_Left ) )
|
if( evt->IsClick( MB_Left ) )
|
||||||
|
|
Loading…
Reference in New Issue