Fix T58898: Python error clicking in empty space in text edit mode.

This commit is contained in:
Brecht Van Lommel 2018-12-06 23:41:49 +01:00
parent 7e722afc62
commit 5fdf739e7f

@ -219,6 +219,8 @@ class VIEW3D_OT_select_or_deselect_all(Operator):
select_all = bpy.ops.mball.select_all select_all = bpy.ops.mball.select_all
elif active_object.type == 'ARMATURE': elif active_object.type == 'ARMATURE':
select_all = bpy.ops.armature.select_all select_all = bpy.ops.armature.select_all
else:
return retval
elif active_object.mode == 'POSE': elif active_object.mode == 'POSE':
select_all = bpy.ops.pose.select_all select_all = bpy.ops.pose.select_all
elif active_object.mode == 'PARTICLE_EDIT': elif active_object.mode == 'PARTICLE_EDIT':