diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-02 18:51:59 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-02 18:51:59 +0100 |
commit | d2e1b4b9f0cbd67e38773ad610912ff382cf4d4f (patch) | |
tree | 5e399c44229a972d289048b19627662a28c40095 /editor | |
parent | 62ed75df9cbac7dd1d73631b5d542000a26325b5 (diff) | |
parent | 83634119d42595498e42685556a577c12145e20b (diff) |
Merge pull request #68118 from aaronfranke/quat-from-euler
Replace Quaternion Euler constructor with `from_euler` method
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 84caed9db5..73691b3461 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2688,7 +2688,7 @@ void EditorPropertyQuaternion::_custom_value_changed(double val) { v.y = Math::deg_to_rad(edit_euler.y); v.z = Math::deg_to_rad(edit_euler.z); - Quaternion temp_q = Quaternion(v); + Quaternion temp_q = Quaternion::from_euler(v); spin[0]->set_value(temp_q.x); spin[1]->set_value(temp_q.y); spin[2]->set_value(temp_q.z); |