Skip to content

Commit a03a306

Browse files
authored
Merge pull request #812 from CesiumGS/ue5-final
Fix compilation problems on official UE5 build.
2 parents 69caa3f + 7b4c46a commit a03a306

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
### v1.12.1 - 2022-04-06
4+
5+
##### Fixes :wrench:
6+
7+
- Fixed compiler errors with the official release of Unreal Engine 5.
8+
39
### v1.12.0 - 2022-04-01
410

511
##### Breaking Changes :mega:

CesiumForUnreal.uplugin

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"FileVersion": 3,
3-
"Version": 23,
4-
"VersionName": "1.12.0",
3+
"Version": 24,
4+
"VersionName": "1.12.1",
55
"FriendlyName": "Cesium for Unreal",
66
"Description": "Unlock the 3D geospatial ecosystem in Unreal Engine with real-world 3D content and a high accuracy full-scale WGS84 globe.",
77
"Category": "Geospatial",
@@ -10,7 +10,7 @@
1010
"DocsURL": "https://cesium.com/learn/unreal/",
1111
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/87b0d05800a545d49bf858ef3458c4f7",
1212
"SupportURL": "https://community.cesium.com",
13-
"EngineVersion": "4.26.0",
13+
"EngineVersion": "5.0.0",
1414
"CanContainContent": true,
1515
"IsBetaVersion": false,
1616
"IsExperimentalVersion": false,

Source/CesiumRuntime/Private/CesiumGltfComponent.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ static void loadPrimitive(
754754
vertex.UVs[0] = TMeshVector2(0.0f, 0.0f);
755755
vertex.UVs[2] = TMeshVector2(0.0f, 0.0f);
756756
RenderData->Bounds.SphereRadius = FMath::Max(
757-
(vertex.Position - RenderData->Bounds.Origin).Size(),
757+
(FVector(vertex.Position) - RenderData->Bounds.Origin).Size(),
758758
RenderData->Bounds.SphereRadius);
759759
}
760760
} else {
@@ -765,7 +765,7 @@ static void loadPrimitive(
765765
vertex.UVs[0] = TMeshVector2(0.0f, 0.0f);
766766
vertex.UVs[2] = TMeshVector2(0.0f, 0.0f);
767767
RenderData->Bounds.SphereRadius = FMath::Max(
768-
(vertex.Position - RenderData->Bounds.Origin).Size(),
768+
(FVector(vertex.Position) - RenderData->Bounds.Origin).Size(),
769769
RenderData->Bounds.SphereRadius);
770770
}
771771
}

0 commit comments

Comments
 (0)