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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user