summaryrefslogtreecommitdiff
path: root/indra/llappearance
diff options
context:
space:
mode:
authorAnsariel <ansariel.hiller@phoenixviewer.com>2024-06-09 16:21:28 +0200
committerAnsariel <ansariel.hiller@phoenixviewer.com>2024-06-09 16:21:28 +0200
commit8703d5b0f91d303a33624edb26ebed16c1c6d941 (patch)
treed5d146e1cb047940cd8fa9f6d597d6ffb6859407 /indra/llappearance
parent9e45c1e506e0cdf8ade6136da9bbf867c93d16e6 (diff)
Found string should not be directly at the start
Diffstat (limited to 'indra/llappearance')
-rw-r--r--indra/llappearance/llpolymorph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llappearance/llpolymorph.cpp b/indra/llappearance/llpolymorph.cpp
index 7deb943a9b..7ae760d312 100644
--- a/indra/llappearance/llpolymorph.cpp
+++ b/indra/llappearance/llpolymorph.cpp
@@ -385,7 +385,7 @@ bool LLPolyMorphTarget::setInfo(LLPolyMorphTargetInfo* info)
{
const std::string driven_tag = "_Driven";
auto pos = morph_param_name.find(driven_tag);
- if (pos != std::string::npos)
+ if (pos != std::string::npos && pos > 0)
{
morph_param_name = morph_param_name.substr(0,pos);
mMorphData = mMesh->getMorphData(morph_param_name);