Page Menu
Home
Search
Configure Global Search
Log In
Paste
P1211
T72732_snippet
Active
Public
Actions
Authored by
Philipp Oeser (lichtwerk)
on Jan 14 2020, 3:11 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
diff --git a/source/blender/makesrna/intern/rna_screen.c b/source/blender/makesrna/intern/rna_screen.c
index 1637f8cfed5..22093c52752 100644
--- a/source/blender/makesrna/intern/rna_screen.c
+++ b/source/blender/makesrna/intern/rna_screen.c
@@ -145,6 +145,11 @@ static void rna_Area_type_set(PointerRNA *ptr, int value)
ScrArea *sa = (ScrArea *)ptr->data;
sa->butspacetype = value;
+
+ if (ELEM(sa->spacetype, SPACE_GRAPH, SPACE_ACTION)) {
+ ARegion *ar = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW);
+ UI_view2d_sync(NULL, sa, &ar->v2d, V2D_LOCK_COPY);
+ }
}
static void rna_Area_type_update(bContext *C, PointerRNA *ptr)
Event Timeline
Philipp Oeser (lichtwerk)
created this paste.
Jan 14 2020, 3:11 PM
Philipp Oeser (lichtwerk)
mentioned this in
T70889: View -> Lock Time to Other Windows does not maintain scale when CTRL+TAB between two animation editor modes.
.
Jan 14 2020, 3:16 PM
Log In to Comment