Fix: Docking Called from Shortcut Without Status Bar

When starting a docking operation from an assigned shortcut, the source
area will be incorrect if the Status Bar is not currently being shown.
This PR just adds defaults that are never valid window coordinates.

Pull Request: https://projects.blender.org/blender/blender/pulls/129187
This commit is contained in:
Harley Acheson
2024-10-18 04:28:33 +02:00
committed by Harley Acheson
parent 528df90336
commit cf2d3d0867

View File

@@ -4290,26 +4290,12 @@ static void SCREEN_OT_area_join(wmOperatorType *ot)
ot->flag = OPTYPE_BLOCKING;
/* rna */
RNA_def_int_vector(ot->srna,
"source_xy",
2,
nullptr,
INT_MIN,
INT_MAX,
"Source location",
"",
INT_MIN,
INT_MAX);
RNA_def_int_vector(ot->srna,
"target_xy",
2,
nullptr,
INT_MIN,
INT_MAX,
"Target location",
"",
INT_MIN,
INT_MAX);
const int def[2] = {-100, -100};
RNA_def_int_vector(
ot->srna, "source_xy", 2, def, INT_MIN, INT_MAX, "Source location", "", INT_MIN, INT_MAX);
RNA_def_int_vector(
ot->srna, "target_xy", 2, def, INT_MIN, INT_MAX, "Target location", "", INT_MIN, INT_MAX);
}
/** \} */