See https://github.com/godotengine/godot/issues/37739. (cherry picked from commit a56e37545b)
a56e37545b