Found string should not be directly at the start

master
Ansariel 2024-06-09 16:21:28 +02:00
parent 9e45c1e506
commit 8703d5b0f9
1 changed files with 1 additions and 1 deletions

View File

@ -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);