UI: Error Logging for Some Screen Operations

WM_report on the unlikely event when an area (smaller than minimums) is
within the combined operation bounds (close or join) and interferes.

Pull Request: https://projects.blender.org/blender/blender/pulls/111280
This commit is contained in:
Harley Acheson 2023-08-18 19:53:18 +02:00 committed by Harley Acheson
parent d5e50460e7
commit 9e71b84f1d
1 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ static bool screen_areas_can_align(bScreen *screen, ScrArea *sa1, ScrArea *sa2,
if (area->v3->vec.x - area->v1->vec.x < tolerance &&
(area->v1->vec.x == xmin || area->v3->vec.x == xmax))
{
/* There is a narrow vertical area sharing an edge of the combined bounds. */
WM_report(RPT_ERROR, "A narrow vertical area interferes with this operation.");
return false;
}
}
@ -405,7 +405,7 @@ static bool screen_areas_can_align(bScreen *screen, ScrArea *sa1, ScrArea *sa2,
if (area->v3->vec.y - area->v1->vec.y < tolerance &&
(area->v1->vec.y == ymin || area->v3->vec.y == ymax))
{
/* There is a narrow horizontal area sharing an edge of the combined bounds. */
WM_report(RPT_ERROR, "A narrow horizontal area interferes with this operation.");
return false;
}
}