summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorBrad Kittenbrink (Brad Linden) <brad@lindenlab.com>2022-10-11 18:08:15 -0700
committerBrad Kittenbrink <brad@lindenlab.com>2022-10-14 14:44:05 -0700
commitc6bb0fef90b0c2c6557b933b0bc57cabd66fa572 (patch)
treea8bd44a9eb616955f6d7129e3592d09f3f063bc7 /indra/newview
parentbda420662710e95de1b3f6ff954459b4bb6c3b01 (diff)
Fix SL-17697 local_id usage
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llmaterialeditor.cpp8
-rw-r--r--indra/newview/llmaterialeditor.h4
-rw-r--r--indra/newview/llpanelface.cpp2
3 files changed, 7 insertions, 7 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp
index 9738030e97..c23f9ec4e7 100644
--- a/indra/newview/llmaterialeditor.cpp
+++ b/indra/newview/llmaterialeditor.cpp
@@ -200,7 +200,7 @@ LLMaterialEditor::LLMaterialEditor(const LLSD& key)
, mHasUnsavedChanges(false)
, mExpectedUploadCost(0)
, mUploadingTexturesCount(0)
- , mOverrideObjectId(LLUUID::null)
+ , mOverrideLocalId(0)
, mOverrideFace(0)
{
const LLInventoryItem* item = getItem();
@@ -2259,7 +2259,7 @@ void LLMaterialEditor::modifyMaterialCoro(std::string cap_url, LLSD overrides)
httpOpts->setFollowRedirects(true);
LLSD body = llsd::map(
- "local_id", mOverrideObjectId,
+ "local_id", S32(mOverrideLocalId),
"face", mOverrideFace,
"overrides", overrides
);
@@ -2279,8 +2279,8 @@ void LLMaterialEditor::modifyMaterialCoro(std::string cap_url, LLSD overrides)
}
}
-void LLMaterialEditor::setOverrideTarget(const LLUUID& object_id, S32 face)
+void LLMaterialEditor::setOverrideTarget(U32 local_id, S32 face)
{
- mOverrideObjectId = object_id;
+ mOverrideLocalId = local_id;
mOverrideFace = face;
}
diff --git a/indra/newview/llmaterialeditor.h b/indra/newview/llmaterialeditor.h
index aa24b52a96..96bf8cc7a2 100644
--- a/indra/newview/llmaterialeditor.h
+++ b/indra/newview/llmaterialeditor.h
@@ -217,7 +217,7 @@ public:
void loadDefaults();
void modifyMaterialCoro(std::string cap_url, LLSD overrides);
- void setOverrideTarget(const LLUUID& object_id, S32 face_id);
+ void setOverrideTarget(U32 local_id, S32 face_id);
private:
void loadMaterial(const tinygltf::Model &model, const std::string &filename_lc, S32 index);
@@ -269,7 +269,7 @@ private:
std::string mMaterialNameShort;
std::string mMaterialName;
- LLUUID mOverrideObjectId;
+ U32 mOverrideLocalId;
S32 mOverrideFace;
};
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index ff5128e0c2..f93a0e7142 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -4603,7 +4603,7 @@ void LLPanelFace::onPbrStartEditing() {
editor->setTitle("Editing material on "s + object_id.asString());
editor->setAssetId(material_id);
editor->setFromGLTFMaterial(material);
- editor->setOverrideTarget(object_id, face);
+ editor->setOverrideTarget(objectp->getLocalID(), face);
}
}