[Bf-extensions-cvs] [afde50f] master: Fix T49865: export .obj broke UVs.

Bastien Montagne noreply at git.blender.org
Sun Oct 30 12:47:10 CET 2016


Commit: afde50f68185006e0b0d5d957b762e97cff6e61f
Author: Bastien Montagne
Date:   Sun Oct 30 12:44:38 2016 +0100
Branches: master
https://developer.blender.org/rBAafde50f68185006e0b0d5d957b762e97cff6e61f

Fix T49865: export .obj broke UVs.

This reverts rBAc553d7c0eb002a02e7, not actually sure why this change in
precision of actually written value was done.

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

M	io_scene_obj/export_obj.py

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

diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index 3933abf..803191f 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -525,7 +525,7 @@ def write_file(filepath, objects, scene,
                                     uv_val = uv_get(uv_key)
                                     if uv_val is None:
                                         uv_val = uv_dict[uv_key] = uv_unique_count
-                                        fw('vt %.4f %.4f\n' % uv[:])
+                                        fw('vt %.6f %.6f\n' % uv[:])
                                         uv_unique_count += 1
                                     uv_ls.append(uv_val)



More information about the Bf-extensions-cvs mailing list