Another enum deprecation fix (and fix oopsie)
parent
869c42e2a9
commit
00e95e21f7
|
|
@ -491,8 +491,9 @@ void LLGLTFLoader::processNodeHierarchy(S32 node_idx, std::map<std::string, S32>
|
|||
// setLoadState(ERROR_MODEL + pModel->getStatus());
|
||||
setLoadState(
|
||||
static_cast<LLModelLoader::eLoadState>(
|
||||
static_cast<S32>(ERROR_MODEL) + static_cast<S32>(mdl->getStatus())));
|
||||
// </FS:Beq> delete pModel;
|
||||
static_cast<S32>(ERROR_MODEL) + static_cast<S32>(pModel->getStatus())));
|
||||
// </FS:Beq>
|
||||
delete pModel;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1324,7 +1324,10 @@ void LLPanelOutfitEdit::showFilteredWearablesListView(LLWearableType::EType type
|
|||
showWearablesListView();
|
||||
|
||||
//e_list_view_item_type implicitly contains LLWearableType::EType starting from LVIT_SHAPE
|
||||
applyListViewFilter(static_cast<EListViewItemType>(LVIT_SHAPE + type));
|
||||
// <FS:Beq> More deprecated enum math
|
||||
// applyListViewFilter(static_cast<EListViewItemType>(LVIT_SHAPE + type));
|
||||
applyListViewFilter(static_cast<EListViewItemType>(static_cast<S32>(LVIT_SHAPE) + static_cast<S32>(type)));
|
||||
// </FS:Beq>
|
||||
mWearableItemsList->setMenuWearableType(type);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue