mirror of https://github.com/vitalif/openscad
regression tests: fix ncc==0 false-fails when using NCC image comparison
parent
546ed16904
commit
0ff0d2b68a
|
@ -110,7 +110,7 @@ def compare_png(resultfilename):
|
|||
elif compare_method=='NCC':
|
||||
thresh = 0.95
|
||||
ncc_err = float(output.strip())
|
||||
if ncc_err > thresh: return True
|
||||
if ncc_err > thresh or ncc_err==0.0: return True
|
||||
else: print >> sys.stderr, ncc_err, ' Images differ: NCC comparison < ', thresh
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue