Skip to content

Commit

Permalink
const blendcache* in skeleton::setgpubones
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Sep 22, 2024
1 parent 7fcfada commit d39c8aa
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 @@ -969,7 +969,7 @@ void skelmodel::skeleton::setglslbones(UniformLoc &u, const skelcacheentry &sc,
u.data = bc.bdata;
}

void skelmodel::skeleton::setgpubones(const skelcacheentry &sc, blendcacheentry *bc, int count)
void skelmodel::skeleton::setgpubones(const skelcacheentry &sc, const blendcacheentry *bc, int count)
{
if(!Shader::lastshader)
{
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 @@ -427,7 +427,7 @@ struct skelmodel : animmodel
bool canpreload() const;
void preload();
const skelcacheentry &checkskelcache(const part * const p, const AnimState *as, float pitch, const vec &axis, const vec &forward, const ragdolldata * const rdata);
void setgpubones(const skelcacheentry &sc, blendcacheentry *bc, int count);
void setgpubones(const skelcacheentry &sc, const blendcacheentry *bc, int count);
bool shouldcleanup() const;
/**
* @brief Sets the pitch information for the index'th bone in the skeleton's bones
Expand Down

0 comments on commit d39c8aa

Please sign in to comment.