Cleanup: format

This commit is contained in:
Philipp Oeser
2024-03-11 11:40:04 +01:00
parent ce58a69313
commit dbce0c3183

View File

@@ -237,7 +237,8 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
t->spacetype = SPACE_EMPTY;
}
else if (((region == nullptr) || (region->regiondata == nullptr)) &&
(area->spacetype == SPACE_VIEW3D)) {
(area->spacetype == SPACE_VIEW3D))
{
/* Running the operator through the text editor where e.g. `area.type` was
* set to 'VIEW_3D' but the viewport was not updated. */
t->spacetype = SPACE_EMPTY;