diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-19 06:27:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-19 06:27:17 +0400 |
commit | b0fd9c806a58ae80c35be9683deb8bbfefbb8991 (patch) | |
tree | 8f405d8d9be3d8d20452fb6637ef526e216a2722 | |
parent | a5453436ebc34e338a12041f9cfaad1f07fb2404 (diff) |
fix [#27019] Loading OBJ in animated scene causes runtime error
-rw-r--r-- | io_scene_obj/import_obj.py | 3 |
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 = [] |