[Bf-extensions-cvs] [887fad6] master: Fix T39879: extra UV seams where meshes overlap.

Bastien Montagne noreply at git.blender.org
Sun May 11 22:04:02 CEST 2014


Commit: 887fad6a0196be41aef358f8c8ff828b10f7898f
Author: Bastien Montagne
Date:   Sun May 11 22:01:41 2014 +0200
https://developer.blender.org/rBA887fad6a0196be41aef358f8c8ff828b10f7898f

Fix T39879: extra UV seams where meshes overlap.

This is not a bug, in fact, but imho we do not need to compare exactness of values
up to the 6th decimal, 4th decimal should be enough, and will avoid such cases of
"over generation" of data...

===================================================================

M	io_scene_obj/export_obj.py

===================================================================

diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index b4c779d..030fad6 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -271,10 +271,10 @@ def write_file(filepath, objects, scene,
         EXPORT_GLOBAL_MATRIX = mathutils.Matrix()
 
     def veckey3d(v):
-        return round(v.x, 6), round(v.y, 6), round(v.z, 6)
+        return round(v.x, 4), round(v.y, 4), round(v.z, 4)
 
     def veckey2d(v):
-        return round(v[0], 6), round(v[1], 6)
+        return round(v[0], 4), round(v[1], 4)
 
     def findVertexGroupName(face, vWeightMap):
         """



More information about the Bf-extensions-cvs mailing list