diff options
Diffstat (limited to 'indra/newview/llfloaterinspect.cpp')
-rw-r--r-- | indra/newview/llfloaterinspect.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/indra/newview/llfloaterinspect.cpp b/indra/newview/llfloaterinspect.cpp index daf3067d7b..388e8d9cbd 100644 --- a/indra/newview/llfloaterinspect.cpp +++ b/indra/newview/llfloaterinspect.cpp @@ -54,18 +54,21 @@ BOOL LLFloaterInspect::isVisible() void LLFloaterInspect::show(void* ignored) { - if(sInstance) - { - sInstance->open(); - } - else + // setForceSelection ensures that the pie menu does not deselect things when it + // looses the focus (this can happen with "select own objects only" enabled + // VWR-1471 + BOOL forcesel = gSelectMgr->setForceSelection(TRUE); + + if (!sInstance) // first use { - LLFloaterInspect* self = new LLFloaterInspect; - self->open(); + sInstance = new LLFloaterInspect; } - sInstance->mObjectSelection = gSelectMgr->getSelection(); + sInstance->open(); select_tool(gToolInspect); + gSelectMgr->setForceSelection(forcesel); // restore previouis value + + sInstance->mObjectSelection = gSelectMgr->getSelection(); sInstance->refresh(); } |