summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermodelpreview.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-10-15 19:51:28 -0500
committerDave Parks <davep@lindenlab.com>2010-10-15 19:51:28 -0500
commit22edf673cf99b6bfe77808fb262f73202c1007ff (patch)
treea6ab5a73c01f5a338862ca483c46159670739bdd /indra/newview/llfloatermodelpreview.cpp
parentf670360d45d10c12f8146c2041efa438f69146d7 (diff)
parent12bd7a40d6c39e93013693abe63a8b9ed69f39e8 (diff)
merge
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rw-r--r--indra/newview/llfloatermodelpreview.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index 258da7b406..d067970806 100644
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -868,16 +868,17 @@ void LLFloaterModelPreview::showDecompFloater()
cur_y += 30;
- const LLCDStageData* stage;
- S32 stage_count = 0;
- if (LLConvexDecomposition::getInstance() != NULL)
+ static const LLCDStageData* stage = NULL;
+ static S32 stage_count = 0;
+
+ if (!stage && LLConvexDecomposition::getInstance() != NULL)
{
stage_count = LLConvexDecomposition::getInstance()->getStages(&stage);
}
- const LLCDParam* param;
- S32 param_count = 0;
- if (LLConvexDecomposition::getInstance() != NULL)
+ static const LLCDParam* param = NULL;
+ static S32 param_count = 0;
+ if (!param && LLConvexDecomposition::getInstance() != NULL)
{
param_count = LLConvexDecomposition::getInstance()->getParameters(&param);
}