[Bf-blender-cvs] [3fd5c93f9ce] master: Geometry Nodes: increase threshold to make regression tests pass
Jacques Lucke
noreply at git.blender.org
Mon Aug 2 10:38:29 CEST 2021
Commit: 3fd5c93f9ce805b1a59bb6a03a9d39767697e336
Author: Jacques Lucke
Date: Mon Aug 2 10:38:11 2021 +0200
Branches: master
https://developer.blender.org/rB3fd5c93f9ce805b1a59bb6a03a9d39767697e336
Geometry Nodes: increase threshold to make regression tests pass
The real fix here is to use some kind of relative error in `customdata_compare`
instead of the absolute error used now. If vertex coordinates get larger in magnitude,
the allowed error should increase as well.
===================================================================
M tests/python/geo_node_test.py
===================================================================
diff --git a/tests/python/geo_node_test.py b/tests/python/geo_node_test.py
index fa87fb23bee..5da28977ba4 100644
--- a/tests/python/geo_node_test.py
+++ b/tests/python/geo_node_test.py
@@ -25,7 +25,7 @@ import sys
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from modules.mesh_test import BlendFileTest
-geo_node_test = BlendFileTest("test_object", "expected_object")
+geo_node_test = BlendFileTest("test_object", "expected_object", threshold=1e-4)
result = geo_node_test.run_test()
# Telling `ctest` about the failed test by raising Exception.
More information about the Bf-blender-cvs
mailing list