From 7f9a8c99c93693023a96eb08afd3d9a723663279 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sat, 24 Sep 2022 18:19:55 -0500 Subject: Clean up Basis from Euler code --- scene/3d/node_3d.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scene/3d') diff --git a/scene/3d/node_3d.cpp b/scene/3d/node_3d.cpp index 5f515acead..1743fa1838 100644 --- a/scene/3d/node_3d.cpp +++ b/scene/3d/node_3d.cpp @@ -253,9 +253,7 @@ Vector3 Node3D::get_global_rotation() const { void Node3D::set_global_rotation(const Vector3 &p_euler_rad) { Transform3D transform = get_global_transform(); - Basis new_basis = transform.get_basis(); - new_basis.set_euler(p_euler_rad); - transform.set_basis(new_basis); + transform.basis = Basis::from_euler(p_euler_rad); set_global_transform(transform); } -- cgit v1.2.3