mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Clear unknown in ViewROI
and ViewManager
(#1571)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -394,7 +394,7 @@ MxBool LegoPlantManager::SwitchColor(LegoEntity* p_entity)
|
||||
|
||||
ViewLODList* lodList = GetViewLODListManager()->Lookup(g_plantLodNames[info->m_variant][info->m_color]);
|
||||
|
||||
if (roi->GetUnknown0xe0() >= 0) {
|
||||
if (roi->GetLodLevel() >= 0) {
|
||||
VideoManager()->Get3DManager()->GetLego3DView()->GetViewManager()->RemoveROIDetailFromScene(roi);
|
||||
}
|
||||
|
||||
@@ -423,7 +423,7 @@ MxBool LegoPlantManager::SwitchVariant(LegoEntity* p_entity)
|
||||
|
||||
ViewLODList* lodList = GetViewLODListManager()->Lookup(g_plantLodNames[info->m_variant][info->m_color]);
|
||||
|
||||
if (roi->GetUnknown0xe0() >= 0) {
|
||||
if (roi->GetLodLevel() >= 0) {
|
||||
VideoManager()->Get3DManager()->GetLego3DView()->GetViewManager()->RemoveROIDetailFromScene(roi);
|
||||
}
|
||||
|
||||
|
@@ -701,7 +701,7 @@ MxLong LegoNavController::Notify(MxParam& p_param)
|
||||
Mx3DPointFloat roiPosition(roi->GetWorldPosition());
|
||||
roiPosition -= viewPosition;
|
||||
|
||||
if (roiPosition.LenSquared() < 2000.0 || roi->GetUnknown0xe0() > 0) {
|
||||
if (roiPosition.LenSquared() < 2000.0 || roi->GetLodLevel() > 0) {
|
||||
entity->ClickAnimation();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user