summaryrefslogtreecommitdiff
path: root/servers/xr_server.cpp
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2021-08-28 14:32:40 +1000
committerBastiaan Olij <mux213@gmail.com>2021-09-21 22:46:31 +1000
commitc527078634dbed724ab487000aea6f3d96b33752 (patch)
tree7661700caeeeb3052d8560753ca2138ed077ad0b /servers/xr_server.cpp
parentdc2b06260901249f1510eaafe11d7db91ed5a579 (diff)
Change to using doubles in XR classes
Diffstat (limited to 'servers/xr_server.cpp')
-rw-r--r--servers/xr_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/xr_server.cpp b/servers/xr_server.cpp
index c18a9f8b4e..f6e6e5953f 100644
--- a/servers/xr_server.cpp
+++ b/servers/xr_server.cpp
@@ -86,11 +86,11 @@ void XRServer::_bind_methods() {
ADD_SIGNAL(MethodInfo("tracker_removed", PropertyInfo(Variant::STRING_NAME, "tracker_name"), PropertyInfo(Variant::INT, "type"), PropertyInfo(Variant::INT, "id")));
};
-real_t XRServer::get_world_scale() const {
+double XRServer::get_world_scale() const {
return world_scale;
};
-void XRServer::set_world_scale(real_t p_world_scale) {
+void XRServer::set_world_scale(double p_world_scale) {
if (p_world_scale < 0.01) {
p_world_scale = 0.01;
} else if (p_world_scale > 1000.0) {