summaryrefslogtreecommitdiff
path: root/modules/gltf
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-20 11:44:56 +0200
committerGitHub <noreply@github.com>2021-06-20 11:44:56 +0200
commit671bd64e4a9984a6a308bc97d6de2eb3bc32fad8 (patch)
tree8a4b1142bccb4264245430abee26b999bc6d9c9e /modules/gltf
parent4fcc5891450a7dca9c8ebae6ff3765f5f060c442 (diff)
parent45c24fd039f237fa9eed03d06ccf8b3738b223e3 (diff)
Merge pull request #49754 from aaronfranke/is-eq-approx-sub-opt
Fix sub-optimal uses of is_equal_approx
Diffstat (limited to 'modules/gltf')
-rw-r--r--modules/gltf/gltf_document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp
index 2fe28c0ac4..674403905a 100644
--- a/modules/gltf/gltf_document.cpp
+++ b/modules/gltf/gltf_document.cpp
@@ -3596,7 +3596,7 @@ void GLTFDocument::spec_gloss_to_rough_metal(Ref<GLTFSpecGloss> r_spec_gloss, Re
if (!Math::is_equal_approx(mr.g, 1.0f)) {
has_roughness = true;
}
- if (!Math::is_equal_approx(mr.b, 0.0f)) {
+ if (!Math::is_zero_approx(mr.b)) {
has_metal = true;
}
mr.g *= r_spec_gloss->gloss_factor;