From 9a37ff1e34fe445a9168a7d91ae1df7d9928eb25 Mon Sep 17 00:00:00 2001 From: Ferenc Arn Date: Wed, 5 Apr 2017 17:47:13 -0500 Subject: Added various functions basic math classes. Also enabled math checks only for debug builds. Added set_scale, set_rotation_euler, set_rotation_axis_angle. Addresses #2565 directly. Added an euler angle constructor for Basis in GDScript and also exposed is_normalized for vectors and quaternions. Various other changes mostly cosmetic in nature. --- scene/resources/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scene') diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp index 4fddd55e2..258452117 100644 --- a/scene/resources/animation.cpp +++ b/scene/resources/animation.cpp @@ -1760,8 +1760,8 @@ bool Animation::_transform_track_optimize_key(const TKey &t0, cons Vector3 v02, v01; real_t a02, a01; - r02.get_axis_and_angle(v02, a02); - r01.get_axis_and_angle(v01, a01); + r02.get_axis_angle(v02, a02); + r01.get_axis_angle(v01, a01); if (Math::abs(a02) > p_max_optimizable_angle) return false; -- cgit v1.2.3-70-g09d2