mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
Fix Fortnite BR map viewer showing mask instead of map
This commit is contained in:
parent
3a85fcbc05
commit
ff5712860f
|
|
@ -1 +1 @@
|
|||
Subproject commit e4826c4b14a223acb2bd8ab860d9799ed6df7d41
|
||||
Subproject commit b337a88a7ec41d6542337687ec01f79fe03cb825
|
||||
|
|
@ -376,8 +376,12 @@ namespace FModel.ViewModels
|
|||
await _threadWorkerView.Begin(_ =>
|
||||
{
|
||||
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};
|
||||
_brMiniMapImage = GetImageSource(_bitmaps[0][_FIRST_BITMAP].Layer);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user