mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-21 21:24:46 +00:00
Merge 89fb2990df into 475142b847
This commit is contained in:
commit
fd65cd867e
|
|
@ -3389,7 +3389,7 @@ void GuiTreeViewCtrl::onMouseDown(const GuiEvent & event)
|
|||
mPossibleRenameItem = NULL;
|
||||
mRenamingItem = NULL;
|
||||
mTempItem = NULL;
|
||||
|
||||
bool wasSelected = isSelected(item);
|
||||
//
|
||||
if( event.modifier & SI_MULTISELECT )
|
||||
{
|
||||
|
|
@ -3473,8 +3473,7 @@ void GuiTreeViewCtrl::onMouseDown(const GuiEvent & event)
|
|||
else if ( !hitFlags.test(OnImage) )
|
||||
{
|
||||
mTempItem = item;
|
||||
|
||||
bool wasSelected = isSelected( item );
|
||||
|
||||
bool multiSelect = getSelectedItemsCount() > 1;
|
||||
|
||||
if( !wasSelected || !multiSelect )
|
||||
|
|
@ -3520,7 +3519,7 @@ void GuiTreeViewCtrl::onMouseDown(const GuiEvent & event)
|
|||
return;
|
||||
|
||||
//
|
||||
if ( mFullRowSelect || hitFlags.test( OnImage ) )
|
||||
if ((mFullRowSelect || hitFlags.test(OnImage)) && wasSelected)
|
||||
{
|
||||
item->setExpanded(!item->isExpanded());
|
||||
if( !item->isInspectorData() && item->mState.test(Item::VirtualParent) )
|
||||
|
|
|
|||
Loading…
Reference in a new issue