mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(model): add CM2Model::DetachAllChildrenById
This commit is contained in:
parent
2fb38d3ebb
commit
aa7e548102
@ -777,6 +777,14 @@ void CM2Model::CancelDeferredSequences(uint32_t boneIndex, bool a3) {
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CM2Model::DetachAllChildrenById(uint32_t id) {
|
||||||
|
for (auto model = this->m_attachList; model; model = model->m_attachNext) {
|
||||||
|
if (model->m_attachId == id) {
|
||||||
|
model->DetachFromParent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CM2Model::DetachFromParent() {
|
void CM2Model::DetachFromParent() {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|||||||
@ -154,6 +154,7 @@ class CM2Model {
|
|||||||
void AttachToParent(CM2Model* parent, uint32_t id, const C3Vector* position, int32_t a5);
|
void AttachToParent(CM2Model* parent, uint32_t id, const C3Vector* position, int32_t a5);
|
||||||
void AttachToScene(CM2Scene* scene);
|
void AttachToScene(CM2Scene* scene);
|
||||||
void CancelDeferredSequences(uint32_t boneIndex, bool a3);
|
void CancelDeferredSequences(uint32_t boneIndex, bool a3);
|
||||||
|
void DetachAllChildrenById(uint32_t id);
|
||||||
void DetachFromParent();
|
void DetachFromParent();
|
||||||
void DetachFromScene();
|
void DetachFromScene();
|
||||||
void FindKey(M2ModelBoneSeq* sequence, const M2TrackBase& track, uint32_t& currentKey, uint32_t& nextKey, float& ratio);
|
void FindKey(M2ModelBoneSeq* sequence, const M2TrackBase& track, uint32_t& currentKey, uint32_t& nextKey, float& ratio);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user