summaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorMai Lavelle <mai.lavelle@gmail.com>2021-01-03 23:49:39 -0500
committerMai Lavelle <mai.lavelle@gmail.com>2021-01-03 23:49:39 -0500
commit4cb070e5906bfe2cb4b949f4ec26478b31b8b219 (patch)
tree8e8cfa5a4b45f1e2201c2a87693b4ddaa38e91b8 /core/math
parent950dedbb6858458b5944523bf806e35eb4d6a5d8 (diff)
Fix xform_inv of Plane, intermediate results were ignored
Diffstat (limited to 'core/math')
-rw-r--r--core/math/transform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/transform.h b/core/math/transform.h
index b121ef984a..60da6f5593 100644
--- a/core/math/transform.h
+++ b/core/math/transform.h
@@ -144,8 +144,8 @@ _FORCE_INLINE_ Plane Transform::xform(const Plane &p_plane) const {
_FORCE_INLINE_ Plane Transform::xform_inv(const Plane &p_plane) const {
Vector3 point = p_plane.normal * p_plane.d;
Vector3 point_dir = point + p_plane.normal;
- xform_inv(point);
- xform_inv(point_dir);
+ point = xform_inv(point);
+ point_dir = xform_inv(point_dir);
Vector3 normal = point_dir - point;
normal.normalize();