mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(model): implement guard condition in CM2Shared::CallbackWhenLoaded
This commit is contained in:
parent
e80d960d6b
commit
767e6bfe6e
1 changed files with 3 additions and 4 deletions
|
|
@ -57,10 +57,9 @@ void CM2Shared::AddRef() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t CM2Shared::CallbackWhenLoaded(CM2Model* model) {
|
int32_t CM2Shared::CallbackWhenLoaded(CM2Model* model) {
|
||||||
// TODO
|
if (model->m_flags & 0x20) {
|
||||||
// if (model->dword4 & 0x20) {
|
return 1;
|
||||||
// return 1;
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
if (this->m_m2DataLoaded && this->m_skinProfileLoaded) {
|
if (this->m_m2DataLoaded && this->m_skinProfileLoaded) {
|
||||||
model->InitializeLoaded();
|
model->InitializeLoaded();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue