Don't try to handle the right mouse button actions in editor mode.

This commit is contained in:
dfighter1985 2014-10-08 17:59:39 +02:00
parent 1111a022af
commit b524c9fec1

View file

@ -2302,6 +2302,14 @@ namespace NLGUI
eventDesc.setX( _Pointer->getX() );
eventDesc.setY( _Pointer->getY() );
if( CInterfaceElement::getEditorMode() )
{
// Let's pretend we've handled the event... or actually we have!
if( ( eventDesc.getEventTypeExtended() == CEventDescriptorMouse::mouserightdown ) ||
( eventDesc.getEventTypeExtended() == CEventDescriptorMouse::mouserightup ) )
return true;
}
if( isMouseHandlingEnabled() )
{
// First thing to do : Capture handling