Skip to content

Commit

Permalink
document part::unlink
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Dec 5, 2024
1 parent 8f0db5b commit 8b5fa1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/engine/model/animmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,14 @@ class animmodel : public model
void genBIH(std::vector<BIH::mesh> &bih, const matrix4x3 &m, float modelscale) const;
void genshadowmesh(std::vector<triangle> &tris, const matrix4x3 &m, float modelscale) const;
bool link(part *p, std::string_view tag, const vec &translate = vec(0, 0, 0), int anim = -1, int basetime = 0, vec *pos = nullptr);

/**
* @brief Removes from this part's linkedpart list the linkedpart corresponding to the passed part
*
* `part::links` is the vector containing the list of linkedparts.
*
* @param p the part to remove the corresponding linkedpart from
*/
bool unlink(const part *p);
void initskins(Texture *tex = notexture, Texture *masks = notexture, uint limit = 0);
bool alphatested() const;
Expand Down

0 comments on commit 8b5fa1c

Please sign in to comment.