Fix crash accessing image space properties without an active window

This commit is contained in:
2020-09-02 12:44:37 +10:00
parent 957346694d
commit ddea2f234f
6 changed files with 31 additions and 22 deletions

View File

@@ -899,7 +899,7 @@ static int image_view_selected_exec(bContext *C, wmOperator *UNUSED(op))
return OPERATOR_CANCELLED;
}
}
else if (ED_space_image_check_show_maskedit(sima, view_layer)) {
else if (ED_space_image_check_show_maskedit(sima, obedit)) {
if (!ED_mask_selected_minmax(C, min, max)) {
return OPERATOR_CANCELLED;
}