Added blender scripts
This commit is contained in:
10
assets/blender/scripts/mixamo/lib/context.py
Normal file
10
assets/blender/scripts/mixamo/lib/context.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import bpy
|
||||
|
||||
def get_current_mode():
|
||||
return bpy.context.mode
|
||||
|
||||
|
||||
def restore_current_mode(current_mode):
|
||||
if current_mode == 'EDIT_ARMATURE':
|
||||
current_mode = 'EDIT'
|
||||
bpy.ops.object.mode_set(mode=current_mode)
|
||||
Reference in New Issue
Block a user