mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T67062: Movie Clip Editor does not update Editor Type when changing Editing Context
Previously when switching modes, the code didn't check if we were in the correct view for the masking mode. Reviewed By: Sergey Differential Revision: http://developer.blender.org/D5288
This commit is contained in:
parent
2e6139dfc2
commit
4b2e6d4e22
2 changed files with 12 additions and 0 deletions
|
|
@ -1515,6 +1515,11 @@ static int mode_set_exec(bContext *C, wmOperator *op)
|
|||
|
||||
sc->mode = mode;
|
||||
|
||||
if (sc->mode == SC_MODE_MASKEDIT && sc->view != SC_VIEW_CLIP) {
|
||||
/* Make sure we are in the right view for mask editing */
|
||||
sc->view = SC_VIEW_CLIP;
|
||||
}
|
||||
|
||||
WM_event_add_notifier(C, NC_SPACE | ND_SPACE_CLIP, NULL);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
|
|
|
|||
|
|
@ -2105,6 +2105,13 @@ static void rna_SpaceClipEditor_clip_mode_update(Main *UNUSED(bmain),
|
|||
{
|
||||
SpaceClip *sc = (SpaceClip *)(ptr->data);
|
||||
|
||||
if (sc->mode == SC_MODE_MASKEDIT && sc->view != SC_VIEW_CLIP) {
|
||||
/* Make sure we are in the right view for mask editing */
|
||||
sc->view = SC_VIEW_CLIP;
|
||||
ScrArea *sa = rna_area_from_space(ptr);
|
||||
ED_area_tag_refresh(sa);
|
||||
}
|
||||
|
||||
sc->scopes.ok = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue