Only select a group first in editor mode.

--HG--
branch : dfighter-tools
This commit is contained in:
dfighter1985 2014-10-08 18:00:54 +02:00
parent ad9e9839fb
commit 08b6675b3d

View file

@ -2407,6 +2407,8 @@ namespace NLGUI
// must not capture a new element if a sheet is currentlty being dragged.
// This may happen when alt-tab has been used => the sheet is dragged but the left button is up
if (!CCtrlDraggable::getDraggedSheet())
{
if( CInterfaceElement::getEditorMode() )
{
for( sint32 i = _GroupsUnderPointer.size() - 1; i >= 0; i-- )
{
@ -2418,6 +2420,7 @@ namespace NLGUI
break;
}
}
}
if( !captured )
{