UI: Error Logging for Some Screen Operations #111280

Merged
Harley Acheson merged 1 commits from Harley/blender:ScreenOpWarnings into main 2023-08-18 19:53:25 +02:00
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;
}
}