feat(model): implement guard condition in CM2Shared::CallbackWhenLoaded

This commit is contained in:
fallenoak 2023-02-21 12:55:47 -06:00
parent e80d960d6b
commit 767e6bfe6e
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -57,10 +57,9 @@ void CM2Shared::AddRef() {
}
int32_t CM2Shared::CallbackWhenLoaded(CM2Model* model) {
// TODO
// if (model->dword4 & 0x20) {
// return 1;
// }
if (model->m_flags & 0x20) {
return 1;
}
if (this->m_m2DataLoaded && this->m_skinProfileLoaded) {
model->InitializeLoaded();