Clear unknown in ViewROI and ViewManager (#1571)

This commit is contained in:
Fabian Neundorf
2025-06-18 16:06:43 +02:00
committed by GitHub
parent 94300afb6c
commit cf32607933
6 changed files with 68 additions and 62 deletions

View File

@@ -643,7 +643,7 @@ MxBool LegoCharacterManager::SetHeadTexture(LegoROI* p_roi, LegoTextureInfo* p_t
lodList->Release();
lodList = dupLodList;
if (head->GetUnknown0xe0() >= 0) {
if (head->GetLodLevel() >= 0) {
VideoManager()->Get3DManager()->GetLego3DView()->GetViewManager()->RemoveROIDetailFromScene(head);
}
@@ -844,7 +844,7 @@ MxBool LegoCharacterManager::SwitchVariant(LegoROI* p_roi)
lodList->Release();
lodList = dupLodList;
if (childROI->GetUnknown0xe0() >= 0) {
if (childROI->GetLodLevel() >= 0) {
VideoManager()->Get3DManager()->GetLego3DView()->GetViewManager()->RemoveROIDetailFromScene(childROI);
}