summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2021-09-10 13:21:00 +0200
committerGitHub <noreply@github.com>2021-09-10 13:21:00 +0200
commit744d5829b7ac88e6588929b63fc9c2b8932714a5 (patch)
tree7fb71949378f1947779401f8bcb07a00728c452a
parentcf08fadbadb55656813612fdba2cb763423d9612 (diff)
parentd3a3b3aff376e759d821d38d9620b1c21c499e6b (diff)
Merge pull request #52229 from lawnjelly/basis_quat_warning
Improve Basis::get_quaternion error message
-rw-r--r--core/math/basis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/basis.cpp b/core/math/basis.cpp
index 5c42213e61..eec9caf149 100644
--- a/core/math/basis.cpp
+++ b/core/math/basis.cpp
@@ -775,7 +775,7 @@ Basis::operator String() const {
Quaternion Basis::get_quaternion() const {
#ifdef MATH_CHECKS
- ERR_FAIL_COND_V_MSG(!is_rotation(), Quaternion(), "Basis must be normalized in order to be casted to a Quaternion. Use get_rotation_quaternion() or call orthonormalized() instead.");
+ ERR_FAIL_COND_V_MSG(!is_rotation(), Quaternion(), "Basis must be normalized in order to be casted to a Quaternion. Use get_rotation_quaternion() or call orthonormalized() if the Basis contains linearly independent vectors.");
#endif
/* Allow getting a quaternion from an unnormalized transform */
Basis m = *this;