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>2019-03-05 23:47:42 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-03-05 23:47:42 +0300
commitc75787ff5fee88a2fc3c591da23b9977abf964a9 (patch)
treee891f8f3ccaa3bd009fe4f53bb95064e2aa57cb1 /io_scene_obj/import_obj.py
parent91d241f5b7df9a3806072765cc5371c5ee34dbd7 (diff)
OBJ importer: do not do 'smart' init of new UV layers.
Not really important here (we expect to set a value for all items), but avoids useless computation anyway.
Diffstat (limited to 'io_scene_obj/import_obj.py')
-rw-r--r--io_scene_obj/import_obj.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 1b591546..8cdedc77 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -676,7 +676,7 @@ def create_mesh(new_objects,
me.loops.foreach_set("normal", loops_nor)
if verts_tex and me.polygons:
- me.uv_layers.new()
+ me.uv_layers.new(do_init=False)
loops_uv = tuple(uv for (_, _, face_vert_tex_indices, _, _, _, _) in faces for face_uvidx in face_vert_tex_indices for uv in verts_tex[face_uvidx])
me.uv_layers[0].data.foreach_set("uv", loops_uv)