Asset Pipeline v2 #145
@ -330,10 +330,10 @@ def shape_key_set_active(obj, shape_key_name):
|
|||||||
obj.active_shape_key_index = index
|
obj.active_shape_key_index = index
|
||||||
|
|
||||||
|
|
||||||
def shape_key_active_move(context, obj, shape_key_name, top=True):
|
def shape_key_move(context, obj, shape_key_name, top=True):
|
||||||
move_type = "TOP" if top else "BOTTOM"
|
move_type = "TOP" if top else "BOTTOM"
|
||||||
shape_key_set_active(obj, shape_key_name)
|
shape_key_set_active(obj, shape_key_name)
|
||||||
with context.temp_override(active_object=obj, object=obj):
|
with context.temp_override(object=obj):
|
||||||
bpy.ops.object.shape_key_move(type=move_type)
|
bpy.ops.object.shape_key_move(type=move_type)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user