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:
@@ -72,7 +72,7 @@ static void rna_Screen_scene_update(bContext *C, PointerRNA *ptr)
|
||||
|
||||
/* exception: must use context so notifier gets to the right window */
|
||||
if (sc->newscene) {
|
||||
ED_screen_set_scene(C, sc->newscene);
|
||||
ED_screen_set_scene(C, sc, sc->newscene);
|
||||
WM_event_add_notifier(C, NC_SCENE|ND_SCENEBROWSE, sc->newscene);
|
||||
|
||||
if (G.f & G_DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user