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-01-11 13:48:17 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-01-11 13:48:17 +0300
commit46a9160c6f67d60610fdcc1dadbe3946a7010625 (patch)
treec6d6a54e8bf37435f2f90aa85142ab78c9ce5414 /io_scene_obj/import_obj.py
parent5509187b4dc331a3d7efb0d70baf691041341276 (diff)
Fix T60387: Blender 2.8 OBJ file format not work in import mode.
Bloody stupid mistake in 'speed-up parsing' work, yet annoyingly difficult to spot on... :(
Diffstat (limited to 'io_scene_obj/import_obj.py')
-rw-r--r--io_scene_obj/import_obj.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 1b30a37b..ba0c5158 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -969,9 +969,9 @@ def load(context,
# and only fallback to full multi-line parsing when needed, this gives significant speed-up
# (~40% on affected code).
if line_start == b'v':
- vdata, vdata_len, do_quick_vert = (verts_loc, 3, not skip_quick_vert)
+ vdata, vdata_len, do_quick_vert = verts_loc, 3, not skip_quick_vert
elif line_start == b'vn':
- vdata, vdata_len, do_quick_vert = (verts_nor, 3, not skip_quick_vert)
+ vdata, vdata_len, do_quick_vert = verts_nor, 3, not skip_quick_vert
elif line_start == b'vt':
vdata, vdata_len, do_quick_vert = verts_tex, 2, not skip_quick_vert
elif context_multi_line == b'v':
@@ -995,7 +995,8 @@ def load(context,
if quick_vert_failures > 10000:
skip_quick_vert = True
if not do_quick_vert:
- context_multi_line = handle_vec(line_start, context_multi_line, line_split, b'v', vdata, vec, vdata_len)
+ context_multi_line = handle_vec(line_start, context_multi_line, line_split,
+ context_multi_line or line_start, vdata, vec, vdata_len)
elif line_start == b'f' or context_multi_line == b'f':
if not context_multi_line: