Skip to content
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

Fix a editor restart crash when custom_display_scale is set to NAN #81050

Conversation

jsjtxietian
Copy link
Contributor

Fixes #81041. Add some protection in EditorScale::set_scale.
It's better to add some limit when assign the value interface/editor/custom_display_scale but it will require more work. But I'm happy to apply your suggestions as well.

@jsjtxietian jsjtxietian force-pushed the fix-custom_display_scale_nan_crash branch from 7957e69 to e8378f2 Compare August 28, 2023 04:34
editor/editor_scale.cpp Outdated Show resolved Hide resolved
@jsjtxietian jsjtxietian force-pushed the fix-custom_display_scale_nan_crash branch from e8378f2 to aa93f77 Compare August 28, 2023 07:59
Add some protection in EditorScale::set_scale
@jsjtxietian jsjtxietian force-pushed the fix-custom_display_scale_nan_crash branch from aa93f77 to ce44cd0 Compare August 28, 2023 09:09
@YuriSizov
Copy link
Contributor

This was actually superseded by #81076. Of course, users may still find a way to break it if they are actively trying to, but there is a limit for how far we should protect them from shooting themselves in their feet. 🙃 Thanks for your contribution nevertheless!

@YuriSizov YuriSizov closed this Sep 1, 2023
@YuriSizov YuriSizov removed this from the 4.2 milestone Sep 1, 2023
@jsjtxietian jsjtxietian deleted the fix-custom_display_scale_nan_crash branch October 18, 2023 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants