diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2022-10-01 21:54:19 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-11-02 19:20:10 -0500 |
commit | 9e952c83869cd2c1d928beeb6493e635e2b690ff (patch) | |
tree | ba59f7a79bde5cf4aa878dad4478562f44a064a6 /editor | |
parent | 889868cbbc8beac74d5f49f9b7ef41efc4ae7d5a (diff) |
Allow getting Quaternion rotation in different Euler orders
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_properties.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 115fda6ca0..d76dce0c1d 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2725,7 +2725,7 @@ void EditorPropertyQuaternion::update_property() { spin[2]->set_value(val.z); spin[3]->set_value(val.w); if (!is_grabbing_euler()) { - Vector3 v = val.normalized().get_euler_yxz(); + Vector3 v = val.normalized().get_euler(); edit_euler.x = Math::rad_to_deg(v.x); edit_euler.y = Math::rad_to_deg(v.y); edit_euler.z = Math::rad_to_deg(v.z); |