mirror of
https://github.com/4sval/FModel.git
synced 2026-10-01 05:29:31 -05:00
Fix Fortnite BR map viewer showing mask instead of map
This commit is contained in:
Submodule CUE4Parse updated: e4826c4b14...b337a88a7e
@@ -376,8 +376,12 @@ namespace FModel.ViewModels
|
|||||||
await _threadWorkerView.Begin(_ =>
|
await _threadWorkerView.Begin(_ =>
|
||||||
{
|
{
|
||||||
if (!Utils.TryLoadObject("FortniteGame/Content/UI/IngameMap/UIMapManagerBR.Default__UIMapManagerBR_C", out UObject mapManager) ||
|
if (!Utils.TryLoadObject("FortniteGame/Content/UI/IngameMap/UIMapManagerBR.Default__UIMapManagerBR_C", out UObject mapManager) ||
|
||||||
!mapManager.TryGetValue(out UMaterial mapMaterial, "MapMaterial") || mapMaterial.GetFirstTexture() is not UTexture2D tex) return;
|
!mapManager.TryGetValue(out UMaterial mapMaterial, "MapMaterial")) return;
|
||||||
|
var midTex = mapMaterial.GetFirstTexture();
|
||||||
|
if ((midTex?.Name ?? string.Empty).Contains("Mask"))
|
||||||
|
midTex = mapMaterial.GetTextureAtIndex(1);
|
||||||
|
|
||||||
|
if (midTex is not UTexture2D tex) return;
|
||||||
_bitmaps[0][_FIRST_BITMAP] = new MapLayer{Layer = Utils.GetBitmap(tex), IsEnabled = true};
|
_bitmaps[0][_FIRST_BITMAP] = new MapLayer{Layer = Utils.GetBitmap(tex), IsEnabled = true};
|
||||||
_brMiniMapImage = GetImageSource(_bitmaps[0][_FIRST_BITMAP].Layer);
|
_brMiniMapImage = GetImageSource(_bitmaps[0][_FIRST_BITMAP].Layer);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user