Asset Pipeline v2 #145
@ -16,7 +16,7 @@ def transfer_vertex_group(
|
|||||||
override = context.copy()
|
override = context.copy()
|
||||||
override["selected_editable_objects"] = [obj_source, obj_target]
|
override["selected_editable_objects"] = [obj_source, obj_target]
|
||||||
override["active_object"] = obj_target
|
override["active_object"] = obj_target
|
||||||
override["object"] = obj_target # TODO test if needed
|
override["object"] = obj_target
|
||||||
with context.temp_override(**override):
|
with context.temp_override(**override):
|
||||||
bpy.ops.object.data_transfer(
|
bpy.ops.object.data_transfer(
|
||||||
data_type="VGROUP_WEIGHTS",
|
data_type="VGROUP_WEIGHTS",
|
||||||
|
Loading…
Reference in New Issue
Block a user