[Bf-extensions-cvs] [4367f86d] master: Animall: fix mode switching
Damien Picard
noreply at git.blender.org
Tue Aug 20 12:18:32 CEST 2019
Commit: 4367f86ded9c4cd5b4b15c27e39cc5d46b35b632
Author: Damien Picard
Date: Wed Aug 14 23:21:00 2019 +0200
Branches: master
https://developer.blender.org/rBAC4367f86ded9c4cd5b4b15c27e39cc5d46b35b632
Animall: fix mode switching
===================================================================
M animation_animall.py
===================================================================
diff --git a/animation_animall.py b/animation_animall.py
index 92e058e9..ad40ccc8 100644
--- a/animation_animall.py
+++ b/animation_animall.py
@@ -233,7 +233,7 @@ class ANIM_OT_insert_keyframe_animall(Operator):
# Set object mode
if obj.type in {'MESH', 'LATTICE', 'CURVE', 'SURFACE'}:
- mode = context.mode.split("_")[0]
+ mode = obj.mode
bpy.ops.object.mode_set(mode='OBJECT')
data = obj.data
@@ -349,7 +349,7 @@ class ANIM_OT_delete_keyframe_animall(Operator):
# Set object mode
if obj.type in {'MESH', 'LATTICE', 'CURVE', 'SURFACE'}:
- mode = context.mode.split("_")[0]
+ mode = obj.mode
bpy.ops.object.mode_set(mode='OBJECT')
data = obj.data
More information about the Bf-extensions-cvs
mailing list