mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix sub-optimal uses of is_equal_approx
This commit is contained in:
parent
60dcc4f39c
commit
45c24fd039
9 changed files with 23 additions and 23 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue