diff options
| author | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2025-06-27 19:23:48 -0400 | 
|---|---|---|
| committer | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2025-06-27 19:23:48 -0400 | 
| commit | ef7bfa5e5260d26505bf8ae90780ee45de9216ef (patch) | |
| tree | 50c9986a9f3fff2c0d9a913c418bc5aa423bfc72 /indra/newview | |
| parent | 26e0ae1b1f387e626d8aedc2760d75308d5fb1ba (diff) | |
Restore glTF mesh modifications.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llfloaterbvhpreview.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llfloaterbvhpreview.h | 2 | ||||
| -rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llmodelpreview.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llvoavatar.cpp | 8 | ||||
| -rw-r--r-- | indra/newview/llvoavatar.h | 2 | ||||
| -rw-r--r-- | indra/newview/llvoavatarself.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llvoavatarself.h | 2 | 
8 files changed, 15 insertions, 15 deletions
| diff --git a/indra/newview/llfloaterbvhpreview.cpp b/indra/newview/llfloaterbvhpreview.cpp index 5ee93be061..b94c31ec04 100644 --- a/indra/newview/llfloaterbvhpreview.cpp +++ b/indra/newview/llfloaterbvhpreview.cpp @@ -179,7 +179,7 @@ void LLFloaterBvhPreview::setAnimCallbacks()      getChild<LLUICtrl>("ease_out_time")->setValidateBeforeCommit( boost::bind(&LLFloaterBvhPreview::validateEaseOut, this, _1));  } -std::map<std::string, std::string, std::less<>> LLFloaterBvhPreview::getJointAliases() +std::map <std::string, std::string> LLFloaterBvhPreview::getJointAliases()  {      LLPointer<LLVOAvatar> av = (LLVOAvatar*)mAnimPreview->getDummyAvatar();      return av->getJointAliases(); @@ -252,7 +252,7 @@ bool LLFloaterBvhPreview::postBuild()                  ELoadStatus load_status = E_ST_OK;                  S32 line_number = 0; -                auto joint_alias_map = getJointAliases(); +                std::map<std::string, std::string> joint_alias_map = getJointAliases();                  loaderp = new LLBVHLoader(file_buffer, load_status, line_number, joint_alias_map);                  std::string status = getString(STATUS[load_status]); diff --git a/indra/newview/llfloaterbvhpreview.h b/indra/newview/llfloaterbvhpreview.h index bb69ab65ef..ae64521492 100644 --- a/indra/newview/llfloaterbvhpreview.h +++ b/indra/newview/llfloaterbvhpreview.h @@ -108,7 +108,7 @@ public:                                         S32 status, LLExtStat ext_status);  private:      void setAnimCallbacks() ; -    std::map<std::string, std::string, std::less<>> getJointAliases(); +    std::map <std::string, std::string> getJointAliases();  protected: diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 5cb5f8b961..84b9cb18f8 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -756,7 +756,7 @@ void LLFloaterModelPreview::onLODParamCommit(S32 lod, bool enforce_tri_limit)          mModelPreview->onLODMeshOptimizerParamCommit(lod, enforce_tri_limit, mode);          break;      default: -        LL_ERRS() << "Only supposed to be called to generate models, val: " << mode << LL_ENDL; +        LL_ERRS() << "Only supposed to be called to generate models" << LL_ENDL;          break;      } @@ -1487,7 +1487,7 @@ void LLFloaterModelPreview::updateAvatarTab(bool highlight_overrides)      {          // Populate table -        std::map<std::string, std::string, std::less<>> joint_alias_map; +        std::map<std::string, std::string> joint_alias_map;          mModelPreview->getJointAliases(joint_alias_map);          S32 conflicts = 0; diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp index 6843f7375d..fc0a3ec58f 100644 --- a/indra/newview/llmodelpreview.cpp +++ b/indra/newview/llmodelpreview.cpp @@ -781,7 +781,7 @@ void LLModelPreview::loadModel(std::string filename, S32 lod, bool force_disable      mLODFile[lod] = filename; -    std::map<std::string, std::string, std::less<>> joint_alias_map; +    std::map<std::string, std::string> joint_alias_map;      getJointAliases(joint_alias_map);      LLHandle<LLModelPreview> preview_handle = getHandle(); diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index dcba891f9f..d9a3ec3004 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -6306,13 +6306,13 @@ const LLUUID& LLVOAvatar::getID() const  // getJoint()  //-----------------------------------------------------------------------------  // RN: avatar joints are multi-rooted to include screen-based attachments -LLJoint* LLVOAvatar::getJoint(std::string_view name) +LLJoint *LLVOAvatar::getJoint( const std::string &name )  {      joint_map_t::iterator iter = mJointMap.find(name); -    LLJoint* jointp = nullptr; +    LLJoint* jointp = NULL; -    if (iter == mJointMap.end() || iter->second == nullptr) +    if (iter == mJointMap.end() || iter->second == NULL)      {   //search for joint and cache found joint in lookup table          if (mJointAliasMap.empty())          { @@ -6329,7 +6329,7 @@ LLJoint* LLVOAvatar::getJoint(std::string_view name)              canonical_name = name;          }          jointp = mRoot->findJoint(canonical_name); -        mJointMap[std::string(name)] = jointp; +        mJointMap[name] = jointp;      }      else      {   //return cached pointer diff --git a/indra/newview/llvoavatar.h b/indra/newview/llvoavatar.h index 9eb8d3f880..ab27c5752d 100644 --- a/indra/newview/llvoavatar.h +++ b/indra/newview/llvoavatar.h @@ -202,7 +202,7 @@ public:      void                    startDefaultMotions();      void                    dumpAnimationState(); -    virtual LLJoint*        getJoint(std::string_view name); +    virtual LLJoint*        getJoint(const std::string &name);      LLJoint*                getJoint(S32 num);      void                    initAllJoints(); diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index ebba9ba291..90ff4067f2 100644 --- a/indra/newview/llvoavatarself.cpp +++ b/indra/newview/llvoavatarself.cpp @@ -697,17 +697,17 @@ void LLVOAvatarSelf::idleUpdate(LLAgent &agent, const F64 &time)  }  // virtual -LLJoint* LLVOAvatarSelf::getJoint(std::string_view name) +LLJoint *LLVOAvatarSelf::getJoint(const std::string &name)  {      std::lock_guard lock(mJointMapMutex); -    LLJoint* jointp = nullptr; +    LLJoint *jointp = NULL;      jointp = LLVOAvatar::getJoint(name);      if (!jointp && mScreenp)      {          jointp = mScreenp->findJoint(name);          if (jointp)          { -            mJointMap[std::string(name)] = jointp; +            mJointMap[name] = jointp;          }      }      if (jointp && jointp != mScreenp && jointp != mRoot) diff --git a/indra/newview/llvoavatarself.h b/indra/newview/llvoavatarself.h index f7cd974ab0..f9bea41b1d 100644 --- a/indra/newview/llvoavatarself.h +++ b/indra/newview/llvoavatarself.h @@ -90,7 +90,7 @@ public:      /*virtual*/ bool        hasMotionFromSource(const LLUUID& source_id);      /*virtual*/ void        stopMotionFromSource(const LLUUID& source_id);      /*virtual*/ void        requestStopMotion(LLMotion* motion); -    /*virtual*/ LLJoint*    getJoint(std::string_view name); +    /*virtual*/ LLJoint*    getJoint(const std::string &name);      /*virtual*/ void renderJoints(); | 
