summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermodelpreview.h
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-01-11 16:39:28 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-01-11 16:39:28 -0500
commit997c0d3924015910b62acaa85e46844fcfb43ec0 (patch)
treedd7d05a0ceb4c777e6bf0c214c69abcb7954a5cb /indra/newview/llfloatermodelpreview.h
parentf71228bf90b54f02f52b315d8a81c0cf296ba4ae (diff)
SH-742 FIX, SH-743 FIX: now treat requesting a specific triangle limit differently from changing some other LOD parameter, to avoid successive simplification problem
Diffstat (limited to 'indra/newview/llfloatermodelpreview.h')
-rwxr-xr-x[-rw-r--r--]indra/newview/llfloatermodelpreview.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llfloatermodelpreview.h b/indra/newview/llfloatermodelpreview.h
index 04e5b9591c..0fccc4d765 100644..100755
--- a/indra/newview/llfloatermodelpreview.h
+++ b/indra/newview/llfloatermodelpreview.h
@@ -187,6 +187,7 @@ protected:
static void onAutoFillCommit(LLUICtrl*,void*);
static void onLODParamCommit(LLUICtrl*,void*);
+ static void onLODParamCommitTriangleLimit(LLUICtrl*,void*);
static void onExplodeCommit(LLUICtrl*, void*);
@@ -232,6 +233,7 @@ protected:
LLMenuButton* mViewOptionMenuButton;
LLToggleableMenu* mViewOptionMenu;
LLMutex* mStatusLock;
+
};
class LLMeshFilePicker : public LLFilePickerThread
@@ -247,6 +249,7 @@ private:
class LLModelPreview : public LLViewerDynamicTexture, public LLMutex
+
{
public:
@@ -271,7 +274,7 @@ class LLModelPreview : public LLViewerDynamicTexture, public LLMutex
void clearModel(S32 lod);
void loadModel(std::string filename, S32 lod);
void loadModelCallback(S32 lod);
- void genLODs(S32 which_lod = -1, U32 decimation = 3);
+ void genLODs(S32 which_lod = -1, U32 decimation = 3, bool enforce_tri_limit = false);
void generateNormals();
void consolidate();
void clearMaterials();
@@ -281,6 +284,7 @@ class LLModelPreview : public LLViewerDynamicTexture, public LLMutex
void updateStatusMessages();
bool containsRiggedAsset( void );
void clearGLODGroup();
+ void onLODParamCommit(bool enforce_tri_limit);
static void textureLoadedCallback( BOOL success, LLViewerFetchedTexture *src_vi, LLImageRaw* src, LLImageRaw* src_aux, S32 discard_level, BOOL final, void* userdata );