Fix #133203: Call invoke function for transfer mesh data

Use operator context of 'INVOKE_DEFAULT' for object.data_transfer and
object.datalayout_transfer in menu VIEW3D_MT_make_links so that they
work correctly when called from popup menus.

Pull Request: https://projects.blender.org/blender/blender/pulls/133228
This commit is contained in:
Pratik Borhade 2025-01-18 19:58:35 +01:00 committed by Harley Acheson
parent 5726a998a0
commit 386365aece

View file

@ -3408,7 +3408,7 @@ class VIEW3D_MT_make_links(Menu):
layout.operator("object.join_uvs", text="Copy UV Maps")
layout.separator()
layout.operator_context = 'INVOKE_DEFAULT'
layout.operator("object.data_transfer")
layout.operator("object.datalayout_transfer")