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:
authorCampbell Barton <ideasman42@gmail.com>2021-01-19 12:29:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-19 12:39:31 +0300
commita86bb2594f1e417041a849c42252125d0ff1b491 (patch)
tree42f75ed636d38d6029f9fb6831687bf0b67f7700 /source/blender/editors/space_clip
parent418cd7c4bae6247e9254bcc6b06e2ef12ec76fb6 (diff)
Fix T84698: error adding movie clip tracks
The movie clip's `region->v2d` was being resized by the view2d code, causing mouse cursor to movie-clip coordinate mapping to fail. This commit removes `UI_view2d_region_reinit`, matching the behavior for the image editor's 2D view. Reviewed By: sergey Ref D10106
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r--source/blender/editors/space_clip/space_clip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index b17a0ba03d5..3bdf016b64c 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -880,7 +880,8 @@ static void clip_main_region_init(wmWindowManager *wm, ARegion *region)
{
wmKeyMap *keymap;
- UI_view2d_region_reinit(&region->v2d, V2D_COMMONVIEW_STANDARD, region->winx, region->winy);
+ /* NOTE: don't use `UI_view2d_region_reinit(&region->v2d, ...)`
+ * since the space clip manages own v2d in #movieclip_main_area_set_view2d */
/* mask polls mode */
keymap = WM_keymap_ensure(wm->defaultconf, "Mask Editing", 0, 0);