Skip to content

Commit

Permalink
skeleton::addtag() std::string_view
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Jan 21, 2024
1 parent 2892e4d commit e59ad03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/engine/model/skelmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ int skelmodel::skeleton::findtag(std::string_view name) const
return -1;
}

bool skelmodel::skeleton::addtag(const char *name, int bone, const matrix4x3 &matrix)
bool skelmodel::skeleton::addtag(std::string_view name, int bone, const matrix4x3 &matrix)
{
int idx = findtag(name);
if(idx >= 0)
Expand Down
2 changes: 1 addition & 1 deletion src/engine/model/skelmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ struct skelmodel : animmodel
skelanimspec &addskelanim(const char *name);
std::optional<int> findbone(const std::string &name) const;
int findtag(std::string_view name) const;
bool addtag(const char *name, int bone, const matrix4x3 &matrix);
bool addtag(std::string_view name, int bone, const matrix4x3 &matrix);
void addpitchdep(int bone, int frame);
int findpitchdep(int bone) const;
int findpitchcorrect(int bone) const;
Expand Down

0 comments on commit e59ad03

Please sign in to comment.