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:
Diffstat (limited to 'io_scene_obj/import_obj.py')
-rw-r--r--io_scene_obj/import_obj.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index a303eda5..470e85ec 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -1025,6 +1025,10 @@ def load(context,
line_start = line_split[0] # we compare with this a _lot_
+ if len(line_split) == 1 and not context_multi_line and line_start != b'end':
+ print("WARNING, skipping malformatted line: %s" % line.decode('UTF-8', 'replace').rstrip())
+ continue
+
# Handling vertex data are pretty similar, factorize that.
# Also, most OBJ files store all those on a single line, so try fast parsing for that first,
# and only fallback to full multi-line parsing when needed, this gives significant speed-up