diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-08-16 19:56:21 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-08-16 19:56:21 +0400 |
commit | 592f1ab1ad6ffd08e1d9aee3e553a104ef169db8 (patch) | |
tree | c200337c6f93198eeefe2a76c2d6c7e7d6e193b2 /source/blender/editors/space_clip/space_clip.c | |
parent | 4b97b4a93a8da71927c2b24a01b86beb26af0a7f (diff) |
Camera tracking integration
===========================
- Added mode toggle operator.
- Hide Marker panel and show Display panel by default.
- Enable manual calibration by default.
Diffstat (limited to 'source/blender/editors/space_clip/space_clip.c')
-rw-r--r-- | source/blender/editors/space_clip/space_clip.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c index 2c2a2108ce5..7bd09fd1e74 100644 --- a/source/blender/editors/space_clip/space_clip.c +++ b/source/blender/editors/space_clip/space_clip.c @@ -105,7 +105,7 @@ static SpaceLink *clip_new(const bContext *UNUSED(C)) sc= MEM_callocN(sizeof(SpaceClip), "initclip"); sc->spacetype= SPACE_CLIP; - sc->flag= SC_SHOW_MARKER_PATTERN|SC_SHOW_TRACK_PATH|SC_SHOW_GPENCIL; + sc->flag= SC_SHOW_MARKER_PATTERN|SC_SHOW_TRACK_PATH|SC_SHOW_GPENCIL|SC_MANUAL_CALIBRATION; sc->zoom= 1.0f; sc->path_length= 20; sc->scopes.track_preview_height= 120; @@ -250,6 +250,7 @@ static void clip_operatortypes(void) WM_operatortype_append(CLIP_OT_view_selected); WM_operatortype_append(CLIP_OT_change_frame); WM_operatortype_append(CLIP_OT_rebuild_proxy); + WM_operatortype_append(CLIP_OT_mode_set); /* ** clip_toolbar.c ** */ WM_operatortype_append(CLIP_OT_tools); @@ -338,6 +339,15 @@ static void clip_keymap(struct wmKeyConfig *keyconf) keymap= WM_keymap_find(keyconf, "Clip Editor", SPACE_CLIP, 0); + /* mode */ + kmi= WM_keymap_add_item(keymap, "CLIP_OT_mode_set", TABKEY, KM_PRESS, 0, 0); + RNA_enum_set(kmi->ptr, "mode", SC_MODE_RECONSTRUCTION); + RNA_boolean_set(kmi->ptr, "toggle", 1); + + kmi= WM_keymap_add_item(keymap, "CLIP_OT_mode_set", TABKEY, KM_PRESS, KM_CTRL, 0); + RNA_enum_set(kmi->ptr, "mode", SC_MODE_DISTORTION); + RNA_boolean_set(kmi->ptr, "toggle", 1); + /* ** View/navigation ** */ WM_keymap_add_item(keymap, "CLIP_OT_view_pan", MIDDLEMOUSE, KM_PRESS, 0, 0); |