Merge branch 'DRTVWR-600-maint-A' of https://github.com/secondlife/viewer
# Conflicts: # indra/llappearance/llpolymorph.cpp # indra/llui/lltextparser.cppmaster
commit
7ab12bd376
|
|
@ -387,7 +387,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);
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ S32 LLTextParser::findPattern(const std::string &text, LLSD highlight)
|
|||
break;
|
||||
case ENDS_WITH:
|
||||
auto pos = ltext.rfind(pattern);
|
||||
if (pos != std::string::npos && pos >= 0 && (ltext.length()-pattern.length()==pos)) found = pos;
|
||||
if (pos != std::string::npos && pos >= 0 && (ltext.length() - pattern.length() == pos)) found = pos;
|
||||
break;
|
||||
}
|
||||
return static_cast<S32>(found);
|
||||
|
|
|
|||
Loading…
Reference in New Issue