CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
902 stars 287 forks source link

Fix crash due to GEditor being nullptr #1339

Closed azrogers closed 7 months ago

azrogers commented 7 months ago

Fixes #1289.

Despite WITH_EDITOR being defined, sometimes GEditor is nullptr when CesiumActors::shouldValidateFlags is called. This change adds a check to return false when that's the case instead of crashing.

azrogers commented 7 months ago

@j9liu Updated CHANGES.md!