Revert "Fix: Blender crashes opening a file with compositor"
This reverts commit 0a70360eb6. That's
because it caused issue #129366 which is much more serious, and the
cause is not obvious so far. Another fix will be submitted for the
original issue.
This commit is contained in:
@@ -386,6 +386,9 @@ static void wm_file_read_setup_wm_use_new(bContext *C,
|
||||
wm->init_flag = 0;
|
||||
wm->winactive = nullptr;
|
||||
|
||||
/* Clearing drawable of old WM before deleting any context to avoid clearing the wrong wm. */
|
||||
wm_window_clear_drawable(old_wm);
|
||||
|
||||
bool has_match = false;
|
||||
LISTBASE_FOREACH (wmWindow *, win, &wm->windows) {
|
||||
LISTBASE_FOREACH (wmWindow *, old_win, &old_wm->windows) {
|
||||
@@ -404,9 +407,6 @@ static void wm_file_read_setup_wm_use_new(bContext *C,
|
||||
static_cast<wmWindow *>(wm->windows.first));
|
||||
}
|
||||
|
||||
/* Clearing drawable of old WM before deleting any context to avoid clearing the wrong wm. */
|
||||
wm_window_clear_drawable(old_wm);
|
||||
|
||||
wm_setup_data->old_wm = nullptr;
|
||||
wm_close_and_free(C, old_wm);
|
||||
/* Don't handle user counts as this is only ever called once #G_MAIN has already been freed via
|
||||
|
||||
Reference in New Issue
Block a user