summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-21 21:31:18 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-03-21 21:31:18 +0200
commitb30cde2a05c5217018d8be7608f14bda8b66127a (patch)
treeeb49e18fd231f0167b1a6d1d8010411bba1b6de6 /indra
parent084ef5173fb79644ce2fd3e640c241a05529db70 (diff)
SL-19392 Disable "Double Sided" by default when importing double sided materials
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llmaterialeditor.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp
index 4cdc503af8..609d8ea5d7 100644
--- a/indra/newview/llmaterialeditor.cpp
+++ b/indra/newview/llmaterialeditor.cpp
@@ -2045,6 +2045,15 @@ void LLMaterialEditor::loadMaterial(const tinygltf::Model &model_in, const std::
setFromGltfMetaData(filename, model_in, index);
+ if (getDoubleSided())
+ {
+ // SL-19392 Double sided materials double the number of pixels that must be rasterized,
+ // and a great many tools that export GLTF simply leave double sided enabled whether
+ // or not it is necessary.
+ LL_DEBUGS("MaterialEditor") << "Defaulting Double Sided to disabled on import" << LL_ENDL;
+ setDoubleSided(false);
+ }
+
markChangesUnsaved(U32_MAX);
if (open_floater)