Skip to content
Snippets Groups Projects
Commit b0fd9c80 authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#27019] Loading OBJ in animated scene causes runtime error

parent a5453436
No related branches found
No related tags found
No related merge requests found
......@@ -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 = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment