Fix #128616: Allow Docking to work from Menu shortcut
Allow Docking to work correctly if using a shortcut to the area header context menu item. There is no longer a need to set the source or target area locations. Pull Request: https://projects.blender.org/blender/blender/pulls/128730
This commit is contained in:
committed by
Harley Acheson
parent
00dca5acec
commit
dc6e021472
@@ -4946,9 +4946,6 @@ static void screen_area_menu_items(ScrArea *area, uiLayout *layout)
|
||||
|
||||
PointerRNA ptr;
|
||||
|
||||
/* Mouse position as if in middle of area. */
|
||||
const int loc[2] = {BLI_rcti_cent_x(&area->totrct), BLI_rcti_cent_y(&area->totrct)};
|
||||
|
||||
uiItemFullO(layout,
|
||||
"SCREEN_OT_area_join",
|
||||
IFACE_("Move/Split Area"),
|
||||
@@ -4957,7 +4954,6 @@ static void screen_area_menu_items(ScrArea *area, uiLayout *layout)
|
||||
WM_OP_INVOKE_DEFAULT,
|
||||
UI_ITEM_NONE,
|
||||
&ptr);
|
||||
RNA_int_set_array(&ptr, "source_xy", loc);
|
||||
|
||||
uiItemS(layout);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user