Skip to content

Commit

Permalink
Fixed UE4.24+ UTextureCube
Browse files Browse the repository at this point in the history
  • Loading branch information
gildor2 committed Jun 8, 2021
1 parent 77c0a40 commit 96f1774
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Unreal/UnrealMaterial/UnTexture4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ struct FTexturePlatformData
// see TextureDerivedData.cpp, SerializePlatformData()
guard(FTexturePlatformData<<);
Ar << D.SizeX << D.SizeY << D.NumSlices;
D.NumSlices &= 0x3fffffff; // 2 higher bits are BitMask_CubeMap and BitMask_HasOptData since UE4.24

#if GEARS4
if (Ar.Game == GAME_Gears4)
Expand Down
Binary file modified umodel
Binary file not shown.
Binary file modified umodel.exe
Binary file not shown.

0 comments on commit 96f1774

Please sign in to comment.