diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-12-08 22:58:27 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-12-09 00:33:57 +0200 |
commit | 9e38e5a187574279b46dc76d9d0fb2c7b2f816f6 (patch) | |
tree | 7370d2bd7625184008cd2bd53d9d9177d165c2a4 /indra | |
parent | 1a6ef9a1fbecadaff00b733c51fd6b980905f102 (diff) |
SL-16471 Removed unneeded MeshOpt generation method
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llmodelpreview.cpp | 9 | ||||
-rw-r--r-- | indra/newview/llmodelpreview.h | 5 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/floater_model_preview.xml | 16 |
4 files changed, 2 insertions, 30 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index aec4e4b8d9..ad9b4c84b4 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -727,7 +727,6 @@ void LLFloaterModelPreview::onLODParamCommit(S32 lod, bool enforce_tri_limit) switch (mode) { case LLModelPreview::MESH_OPTIMIZER_AUTO: - case LLModelPreview::MESH_OPTIMIZER: case LLModelPreview::MESH_OPTIMIZER_SLOPPY: case LLModelPreview::MESH_OPTIMIZER_COMBINE: mModelPreview->onLODMeshOptimizerParamCommit(lod, enforce_tri_limit, mode); @@ -1736,7 +1735,6 @@ void LLFloaterModelPreview::onLoDSourceCommit(S32 lod) LLComboBox* lod_source_combo = getChild<LLComboBox>("lod_source_" + lod_name[lod]); S32 index = lod_source_combo->getCurrentIndex(); if (index == LLModelPreview::MESH_OPTIMIZER_AUTO - || index == LLModelPreview::MESH_OPTIMIZER || index == LLModelPreview::MESH_OPTIMIZER_SLOPPY || index == LLModelPreview::MESH_OPTIMIZER_COMBINE) { //rebuild LoD to update triangle counts diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp index 907b5ec418..0d297a8559 100644 --- a/indra/newview/llmodelpreview.cpp +++ b/indra/newview/llmodelpreview.cpp @@ -1748,15 +1748,6 @@ void LLModelPreview::genMeshOptimizerLODs(S32 which_lod, S32 meshopt_mode, U32 d } } } - - if (model_meshopt_mode == MESH_OPTIMIZER) - { - // Run meshoptimizer for each face - for (U32 face_idx = 0; face_idx < base->getNumVolumeFaces(); ++face_idx) - { - genMeshOptimizerPerFace(base, target_model, face_idx, indices_decimator, lod_error_threshold, false); - } - } if (model_meshopt_mode == MESH_OPTIMIZER_SLOPPY) { diff --git a/indra/newview/llmodelpreview.h b/indra/newview/llmodelpreview.h index 7d4507ccf2..9361acfc49 100644 --- a/indra/newview/llmodelpreview.h +++ b/indra/newview/llmodelpreview.h @@ -125,9 +125,8 @@ public: { LOD_FROM_FILE = 0, MESH_OPTIMIZER_AUTO, // automatically selects method based on model or face - MESH_OPTIMIZER_COMBINE, - MESH_OPTIMIZER, - MESH_OPTIMIZER_SLOPPY, + MESH_OPTIMIZER_COMBINE, // combines faces into a single model, simplifies, then splits back into faces + MESH_OPTIMIZER_SLOPPY, // uses sloppy method, works per face USE_LOD_ABOVE, } eLoDMode; diff --git a/indra/newview/skins/default/xui/en/floater_model_preview.xml b/indra/newview/skins/default/xui/en/floater_model_preview.xml index d08bc92e5d..f10cc61826 100644 --- a/indra/newview/skins/default/xui/en/floater_model_preview.xml +++ b/indra/newview/skins/default/xui/en/floater_model_preview.xml @@ -195,10 +195,6 @@ label="Generate Precise" value="MeshOptCombine" /> <item - name="MeshOpt" - label="Generate per face" - value="MeshOpt" /> - <item name="MeshOptSloppy" label="Generate Sloppy" value="MeshOptSloppy" /> @@ -336,10 +332,6 @@ label="Generate Precise" value="MeshOptCombine" /> <item - name="MeshOpt" - label="Generate per face" - value="MeshOpt" /> - <item name="MeshOptSloppy" label="Generate Sloppy" value="MeshOptSloppy" /> @@ -481,10 +473,6 @@ label="Generate Precise" value="MeshOptCombine" /> <item - name="MeshOpt" - label="Generate per face" - value="MeshOpt" /> - <item name="MeshOptSloppy" label="Generate Sloppy" value="MeshOptSloppy" /> @@ -626,10 +614,6 @@ label="Generate Precise" value="MeshOptCombine" /> <item - name="MeshOpt" - label="Generate per face" - value="MeshOpt" /> - <item name="MeshOptSloppy" label="Generate Sloppy" value="MeshOptSloppy" /> |