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:
authorCampbell Barton <ideasman42@gmail.com>2011-04-19 06:27:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-19 06:27:17 +0400
commitb0fd9c806a58ae80c35be9683deb8bbfefbb8991 (patch)
tree8f405d8d9be3d8d20452fb6637ef526e216a2722 /io_scene_obj
parenta5453436ebc34e338a12041f9cfaad1f07fb2404 (diff)
fix [#27019] Loading OBJ in animated scene causes runtime error
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/import_obj.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 5d385e0a..ee77c35d 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -1244,7 +1244,8 @@ def load(operator, context, filepath,
verts_loc[:] = [(v[0], v[2], -v[1]) for v in verts_loc]
# deselect all
- bpy.ops.object.select_all(action='DESELECT')
+ if bpy.ops.object.select_all.poll():
+ bpy.ops.object.select_all(action='DESELECT')
scene = context.scene
# scn.objects.selected = []