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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 78d80872..f03ed2f1 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -915,6 +915,8 @@ def load(context,
"""
def unique_name(existing_names, name_orig):
i = 0
+ if name_orig is None:
+ name_orig = b"ObjObject"
name = name_orig
while name in existing_names:
name = b"%s.%03d" % (name_orig, i)