summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorFerenc Arn <tagcup@yahoo.com>2017-08-29 21:47:59 -0400
committerFerenc Arn <tagcup@yahoo.com>2017-08-29 21:47:59 -0400
commita0bbf5c9afd0822d5f392c91fff37ecd4315647a (patch)
tree50ff8abf4b5d639ae6437edc6b17dd702b788f17 /scene/3d
parentefcafab6255ea78365e519ca3a13e9bf8b2a81d4 (diff)
Remove Basis::set_scale and Basis::set_rotation_* functions.
Those functions were added in #8277 but they did more harm than good. They're subtle, don't do what people think and requires users to understand the non-uniqueness of polar decomposition. They ended up confusing people. Until we store additional information enough to make a unique polar decomposition, these functions shouldn't be a part of Basis.
Diffstat (limited to 'scene/3d')
-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);