You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix sub-optimal uses of is_equal_approx
This commit is contained in:
@@ -1167,7 +1167,7 @@ Transform3D ReadMatrix(const ElementPtr element) {
|
||||
|
||||
// clean values to prevent any IBM damage on inverse() / affine_inverse()
|
||||
for (float &value : values) {
|
||||
if (::Math::is_equal_approx(0, value)) {
|
||||
if (::Math::is_zero_approx(value)) {
|
||||
value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user