-
Notifications
You must be signed in to change notification settings - Fork 329
Fixes for Unreal 5.7 #1755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fixes for Unreal 5.7 #1755
Conversation
|
|
||
| #define ENGINE_VERSION_5_5_OR_HIGHER \ | ||
| (ENGINE_MAJOR_VERSION > 5 || ENGINE_MINOR_VERSION >= 5) | ||
| (ENGINE_MAJOR_VERSION > 5 && ENGINE_MINOR_VERSION >= 5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|| was correct, && is wrong. Think about how it will evaluate for 5.4, 5.5, and 6.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should be >= 5 or > 4, but wouldn't ENGINE_MAJOR_VERSION > 5 || ENGINE_MINOR_VERSION >= 5 also trigger for, say, Unreal 4.27?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. It should be (ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 5) || (ENGINE_MAJOR_VERSION > 5)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the original formulation of this won't work at all in 4.27. But neither will anything else in this code base. 😁
I'm pretty sure this will work in UE 5.6 and 5.7, but maybe not in earlier versions.
So we use the one from cesium-native instead.
The release notes say r25b is the minimum, but it doesn't work, and the Editor UI reports r27c is the actual minimum.
The Unreal 5.7 preview is here, so I went through and updated everything to work with the new version. Most of the changes involve texture loading, as some of the deprecated paths we were using are now fully removed.
Still need to get 5.7 working on CI. Will probably wait for full release for that one.