Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2019-07-18 16:25:37 +0300
committerSebastian Parborg <darkdefende@gmail.com>2019-07-18 16:29:03 +0300
commit4b2e6d4e22dc16cd521da777bd4493b49f34e034 (patch)
tree16e527a3c926966b40640d53d986c75d360d3e8e /source/blender/makesrna
parent2e6139dfc2e34e6562e36a637683cba37a53309f (diff)
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
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_space.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 2ba5e2ae68c..6dc0cf045cd 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -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;
}