diff options
author | Tianwei Shen <shentianweipku@gmail.com> | 2016-08-05 19:17:47 +0300 |
---|---|---|
committer | Tianwei Shen <shentianweipku@gmail.com> | 2016-08-05 19:17:47 +0300 |
commit | eaf9ccb22acc8f89474e568e67833678be907422 (patch) | |
tree | 0f2f8214f8dda1b5c7936510597739a15f165069 /source/blender/editors/space_clip | |
parent | 17b207f3990d6997774343c943d01aebbde46e61 (diff) |
fix bug in chaning mode
- error: when 'tracking' mode is clicked, it also enter into 'correspondence' mode.
the if-else logic was wrong
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r-- | source/blender/editors/space_clip/clip_editor.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c index a63c5779779..f260c74c4a3 100644 --- a/source/blender/editors/space_clip/clip_editor.c +++ b/source/blender/editors/space_clip/clip_editor.c @@ -728,12 +728,15 @@ void ED_clip_update_correspondence_mode(bContext *C, SpaceClip *sc) } BLI_assert(find_draw_region == true && ar != NULL); + printf("sc mode: %d\n", sc->mode); + printf("alignment : %d\n", ar->alignment); /* some rules related to changing between correspondence mode and other mode*/ if (ar->regiontype != RGN_TYPE_WINDOW) { return; } else if (sc->mode != SC_MODE_CORRESPONDENCE && ar->alignment == RGN_ALIGN_VSPLIT) { ///* Exit split-view */ + printf("exit split-view\n"); ScrArea *sa = CTX_wm_area(C); ARegion *arn; @@ -755,7 +758,8 @@ void ED_clip_update_correspondence_mode(bContext *C, SpaceClip *sc) else if (ar->next) { return; // Only last region can be splitted } - else { + else if (sc->mode == SC_MODE_CORRESPONDENCE) { + printf("enter split-view\n"); /* Enter split-view */ ScrArea *sa = CTX_wm_area(C); |