2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 15:41:48 +00:00

CGunWeapon: Eliminate usages of const_cast

Eliminates trivial usages of const_cast by making Draw related functions
non-const. This also allows removing the mutable specifiers from several
shader data members.
This commit is contained in:
Lioncash
2020-04-05 08:29:43 -04:00
parent 19cfb92d5d
commit 2e6bd0f05e
7 changed files with 24 additions and 23 deletions

View File

@@ -223,6 +223,7 @@ public:
std::shared_ptr<CSkinnedModel> GetXRayModel() const { return xf4_xrayModel; }
void SetInfraModel(const TLockedToken<CModel>& model, const TLockedToken<CSkinRules>& skinRules);
std::shared_ptr<CSkinnedModel> GetInfraModel() const { return xf8_infraModel; }
TLockedToken<CSkinnedModel>& GetModelData() { return xd8_modelData; }
const TLockedToken<CSkinnedModel>& GetModelData() const { return xd8_modelData; }
static void PoseSkinnedModel(CSkinnedModel& model, const CPoseAsTransforms& pose, const CModelFlags& drawFlags,