From 8b5fa1c686eeb4e9e5900bac69ecb2643ae0b96b Mon Sep 17 00:00:00 2001 From: Alex Foster <123afoster@gmail.com> Date: Wed, 4 Dec 2024 23:48:58 -0800 Subject: [PATCH] document part::unlink --- src/engine/model/animmodel.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/model/animmodel.h b/src/engine/model/animmodel.h index 0c741702..c9923d1f 100644 --- a/src/engine/model/animmodel.h +++ b/src/engine/model/animmodel.h @@ -599,6 +599,14 @@ class animmodel : public model void genBIH(std::vector &bih, const matrix4x3 &m, float modelscale) const; void genshadowmesh(std::vector &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;