Merge branch 'blender-v4.1-release'

This commit is contained in:
Philipp Oeser
2024-03-11 09:33:15 +01:00

View File

@@ -236,8 +236,10 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
/* Background mode. */
t->spacetype = SPACE_EMPTY;
}
else if ((region == nullptr) && (area->spacetype == SPACE_VIEW3D)) {
/* Running in the text editor. */
else if (((region == nullptr) || (region->regiondata == nullptr)) &&
(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;
}
else {