Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-05-12 00:01:41 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-05-12 00:01:41 +0400
commit887fad6a0196be41aef358f8c8ff828b10f7898f (patch)
treeed98e10f7bdb2aac0625f03d2a637fcaa40571df /io_scene_obj
parent031bb41901525792b37eb6764128f5f406bcb9ef (diff)
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...
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/export_obj.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index b4c779d2..030fad68 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):
"""