From 0e4f0c2ee86fc3137bca32c365719253dc365e04 Mon Sep 17 00:00:00 2001
From: Bastien Montagne <montagne29@wanadoo.fr>
Date: Fri, 11 Jul 2014 16:29:54 +0200
Subject: [PATCH] Fix issue in similar_values_iter() helper.

---
 io_scene_fbx/fbx_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index 9b3f638ba..2f203dd8c 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -202,7 +202,7 @@ def similar_values_iter(v1, v2, e=1e-6):
     if v1 == v2:
         return True
     for v1, v2 in zip(v1, v2):
-        if (abs(v1 - v2) / max(abs(v1), abs(v2))) > e:
+        if (v1 != v2) and ((abs(v1 - v2) / max(abs(v1), abs(v2))) > e):
             return False
     return True
 
-- 
GitLab