Skip to content

Commit 7473618

Browse files
committed
Update transform2d.rs
1 parent 96e90ba commit 7473618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-core/src/builtin/transform2d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ impl Transform2D {
159159
///
160160
/// _Godot equivalent: `Transform2D.determinant()`_
161161
pub fn determinant(&self) -> real {
162-
self.glam(|aff| aff.inverse())
162+
self.basis().determinant()
163163
}
164164

165165
/// Returns the transform's rotation (in radians).

0 commit comments

Comments
 (0)