From e59ad03032bf92ab9236e8087a0f4e913654bda9 Mon Sep 17 00:00:00 2001 From: Alex Foster <123afoster@gmail.com> Date: Sat, 20 Jan 2024 19:57:48 -0800 Subject: [PATCH] skeleton::addtag() std::string_view --- src/engine/model/skelmodel.cpp | 2 +- src/engine/model/skelmodel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/model/skelmodel.cpp b/src/engine/model/skelmodel.cpp index 7889146c..6e1b5866 100644 --- a/src/engine/model/skelmodel.cpp +++ b/src/engine/model/skelmodel.cpp @@ -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) diff --git a/src/engine/model/skelmodel.h b/src/engine/model/skelmodel.h index 19c0e0c4..2e316fd3 100644 --- a/src/engine/model/skelmodel.h +++ b/src/engine/model/skelmodel.h @@ -212,7 +212,7 @@ struct skelmodel : animmodel skelanimspec &addskelanim(const char *name); std::optional 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;