summaryrefslogtreecommitdiff
path: root/scene/3d/arvr_nodes.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-30 12:45:22 +0200
committerGitHub <noreply@github.com>2017-08-30 12:45:22 +0200
commit3e98835061f4cb76cee193b073ca81b75f13a4e9 (patch)
treebab33fe3c8075506fd36ac711a9c253e1b002c8a /scene/3d/arvr_nodes.cpp
parentaac077774ecc5364a9705f0095ce57bf9db5364d (diff)
parenta0bbf5c9afd0822d5f392c91fff37ecd4315647a (diff)
Merge pull request #10778 from tagcup/basis_set_rotscale
Remove Basis::set_scale and Basis::set_rotation_* functions.
Diffstat (limited to 'scene/3d/arvr_nodes.cpp')
-rw-r--r--scene/3d/arvr_nodes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/arvr_nodes.cpp b/scene/3d/arvr_nodes.cpp
index 545be8bc5f..caf313190b 100644
--- a/scene/3d/arvr_nodes.cpp
+++ b/scene/3d/arvr_nodes.cpp
@@ -264,7 +264,7 @@ void ARVRAnchor::_notification(int p_what) {
// our basis is scaled to the size of the plane the anchor is tracking
// extract the size from our basis and reset the scale
size = transform.basis.get_scale() * world_scale;
- transform.basis.set_scale(Vector3(1.0, 1.0, 1.0));
+ transform.basis.orthonormalize();
// apply our reference frame and set our transform
set_transform(arvr_server->get_reference_frame() * transform);