patch [#30481] rna_Screen_scene_set does the wrong thing [patch]

from Dan Eicher (dna)

--- from the tracker
Setting Screen.scene only uses the active screen through a call to CTX_wm_screen(C) instead of the actual referenced scene.

The attached py-op demonstrates this behavior, assuming at least two separate scenes in the VSE.
This commit is contained in:
2012-03-07 16:43:42 +00:00
parent c78f02d990
commit 5d74235b5f
7 changed files with 19 additions and 16 deletions

View File

@@ -3326,7 +3326,7 @@ static int scene_new_exec(bContext *C, wmOperator *op)
}
}
ED_screen_set_scene(C, newscene);
ED_screen_set_scene(C, CTX_wm_screen(C), newscene);
WM_event_add_notifier(C, NC_SCENE|ND_SCENEBROWSE, newscene);