summaryrefslogtreecommitdiff
path: root/indra/newview/llfloateroutfitsnapshot.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2016-08-10 16:32:35 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2016-08-10 16:32:35 +0300
commitb496e4ff156ab2fb055e741b97ceda5751476e7f (patch)
tree53cc87269eb2981735e2f954d590f289b6e5ada4 /indra/newview/llfloateroutfitsnapshot.cpp
parent471ff40c2c544158158abebcd88070c3c6aaf4c8 (diff)
MAINT-6616 new crash in VOB viewer in snapshot preview
Diffstat (limited to 'indra/newview/llfloateroutfitsnapshot.cpp')
-rw-r--r--indra/newview/llfloateroutfitsnapshot.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llfloateroutfitsnapshot.cpp b/indra/newview/llfloateroutfitsnapshot.cpp
index 093a2dad64..ca5a2fdad5 100644
--- a/indra/newview/llfloateroutfitsnapshot.cpp
+++ b/indra/newview/llfloateroutfitsnapshot.cpp
@@ -311,13 +311,20 @@ void LLFloaterOutfitSnapshot::onOpen(const LLSD& key)
// static
void LLFloaterOutfitSnapshot::update()
{
- LLFloaterOutfitSnapshot* inst = getInstance();
+ LLFloaterOutfitSnapshot* inst = findInstance();
if (inst != NULL)
{
inst->impl->updateLivePreview();
}
}
+
+// static
+LLFloaterOutfitSnapshot* LLFloaterOutfitSnapshot::findInstance()
+{
+ return LLFloaterReg::findTypedInstance<LLFloaterOutfitSnapshot>("outfit_snapshot");
+}
+
// static
LLFloaterOutfitSnapshot* LLFloaterOutfitSnapshot::getInstance()
{