Asset Pipeline v2 #145
@ -40,6 +40,7 @@ def transfer_vertex_group(
|
|||||||
target_obj.vertex_groups.remove(target_obj.vertex_groups.get(vertex_group_name))
|
target_obj.vertex_groups.remove(target_obj.vertex_groups.get(vertex_group_name))
|
||||||
|
|
||||||
source_obj.vertex_groups.active = source_obj.vertex_groups[vertex_group_name]
|
source_obj.vertex_groups.active = source_obj.vertex_groups[vertex_group_name]
|
||||||
|
# TODO Debug crashing / use context.temp_override(object=obj) style
|
||||||
override = context.copy()
|
override = context.copy()
|
||||||
override["selected_editable_objects"] = [target_obj, source_obj]
|
override["selected_editable_objects"] = [target_obj, source_obj]
|
||||||
override["active_object"] = source_obj
|
override["active_object"] = source_obj
|
||||||
@ -432,6 +433,8 @@ def transfer_shape_key(
|
|||||||
sk_target.relative_key = target_obj.data.shape_keys.key_blocks[
|
sk_target.relative_key = target_obj.data.shape_keys.key_blocks[
|
||||||
sk_source.relative_key.name
|
sk_source.relative_key.name
|
||||||
]
|
]
|
||||||
|
# TODO DEBUG COTNEXT OVERRIDE ISSUE HERE TO RE-ORDER ITEMS
|
||||||
|
# TODO Only move relative keys to the top
|
||||||
shape_key_active_move(context, target_obj, shape_key_name)
|
shape_key_active_move(context, target_obj, shape_key_name)
|
||||||
|
|
||||||
bm_source = bmesh.new()
|
bm_source = bmesh.new()
|
||||||
|
Loading…
Reference in New Issue
Block a user