[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31224] branches/soc-2010-leifandersen/ release/scripts/op/tests_hash.py: Found the bugger that was causing the hash troubles on different build systems .
Leif Andersen
leif.a.andersen at gmail.com
Wed Aug 11 02:29:11 CEST 2010
Revision: 31224
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31224
Author: leifandersen
Date: 2010-08-11 02:29:11 +0200 (Wed, 11 Aug 2010)
Log Message:
-----------
Found the bugger that was causing the hash troubles on different build systems. It seemed to be do to roundoff error. However, I am a bit affraid that every float will be like this.
Modified Paths:
--------------
branches/soc-2010-leifandersen/release/scripts/op/tests_hash.py
Modified: branches/soc-2010-leifandersen/release/scripts/op/tests_hash.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/op/tests_hash.py 2010-08-10 21:22:26 UTC (rev 31223)
+++ branches/soc-2010-leifandersen/release/scripts/op/tests_hash.py 2010-08-11 00:29:11 UTC (rev 31224)
@@ -179,7 +179,7 @@
for num in pair:
hashcode.update(str(num).encode())
for point in face.normal:
- hashcode.update(str(point).encode())
+ hashcode.update(str(round(point, 10)).encode())
for num in ob.data.edge_face_count:
hashcode.update(str(num).encode())
for ps in ob.particle_systems:
More information about the Bf-blender-cvs
mailing list