forked from bartvdbraak/blender
fix [#35434] Segmentation fault switching screen layout from python
This commit is contained in:
parent
289ca57e7a
commit
5cdddb12d9
@ -247,6 +247,9 @@ void wm_event_do_notifiers(bContext *C)
|
||||
if (note->window == win) {
|
||||
if (note->category == NC_SCREEN) {
|
||||
if (note->data == ND_SCREENBROWSE) {
|
||||
/* free popup handlers */
|
||||
WM_event_remove_handlers(C, &win->modalhandlers);
|
||||
|
||||
ED_screen_set(C, note->reference); // XXX hrms, think this over!
|
||||
if (G.debug & G_DEBUG_EVENTS)
|
||||
printf("%s: screen set %p\n", __func__, note->reference);
|
||||
|
Loading…
Reference in New Issue
Block a user