Merge branch 'V2MultiWear' of git://github.com/Shyotl/SingularityViewer into V2MultiWear
Conflicts: indra/llrender/llvertexbuffer.h Chose Shyotl's.
This commit is contained in:
@@ -4754,8 +4754,6 @@ void process_kill_object(LLMessageSystem *mesgsys, void **user_data)
|
||||
LL_DEBUGS("Messaging") << "Kill message for local " << local_id << LL_ENDL;
|
||||
}
|
||||
|
||||
LLSelectMgr::getInstance()->removeObjectFromSelections(id);
|
||||
|
||||
// ...don't kill the avatar
|
||||
if (!(id == gAgentID))
|
||||
{
|
||||
@@ -4785,6 +4783,12 @@ void process_kill_object(LLMessageSystem *mesgsys, void **user_data)
|
||||
gObjectList.mNumUnknownKills++;
|
||||
}
|
||||
}
|
||||
|
||||
// We should remove the object from selection after it is marked dead by gObjectList to make LLToolGrab,
|
||||
// which is using the object, release the mouse capture correctly when the object dies.
|
||||
// See LLToolGrab::handleHoverActive() and LLToolGrab::handleHoverNonPhysical().
|
||||
LLSelectMgr::getInstance()->removeObjectFromSelections(id);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user