summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-01-16 22:04:18 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-01-16 22:52:41 +0200
commit71bcc8977646072d4fbf3a2cd49c7a4ee1b4ea78 (patch)
tree1526f105afbbe863092628395365d030c20fb825 /indra
parentbf43a8574c394c27bad1b0b08c88cad308a55572 (diff)
SL-20669 Material editor uses incorect blank normal maps
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llmaterialeditor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp
index db9589666c..34f2f77d25 100644
--- a/indra/newview/llmaterialeditor.cpp
+++ b/indra/newview/llmaterialeditor.cpp
@@ -43,6 +43,7 @@
#include "llnotificationsutil.h"
#include "lltexturectrl.h"
#include "lltrans.h"
+#include "llviewercontrol.h"
#include "llviewermenufile.h"
#include "llviewertexture.h"
#include "llsdutil.h"
@@ -448,6 +449,10 @@ BOOL LLMaterialEditor::postBuild()
mEmissiveTextureCtrl->setCommitCallback(boost::bind(&LLMaterialEditor::onCommitTexture, this, _1, _2, MATERIAL_EMISIVE_TEX_DIRTY));
mNormalTextureCtrl->setCommitCallback(boost::bind(&LLMaterialEditor::onCommitTexture, this, _1, _2, MATERIAL_NORMAL_TEX_DIRTY));
+ // should match normal textures from mBumpyTextureCtrl
+ mNormalTextureCtrl->setDefaultImageAssetID(LLUUID(gSavedSettings.getString("DefaultObjectNormalTexture")));
+ mNormalTextureCtrl->setBlankImageAssetID(LLUUID(gSavedSettings.getString("DefaultBlankNormalTexture")));
+
if (mIsOverride)
{
// Live editing needs a recovery mechanism on cancel