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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-06-07 20:36:19 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-07 20:36:19 +0400
commit64c45caff963c30cb9d4f6c0e94036ffa8363882 (patch)
tree404728f4b74c4fc9eb42a86ec096db569e593422 /source/blender/editors/space_clip/clip_editor.c
parent8a500eea9a7414747eeb45d97b8581a507322db6 (diff)
Remove checks for valid frame from poll function in clip editor space
This results in some buttons not disabled when there's no currently displaying frame, but this saves lots of cache lookups and threading loks for every frame update.
Diffstat (limited to 'source/blender/editors/space_clip/clip_editor.c')
-rw-r--r--source/blender/editors/space_clip/clip_editor.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c
index ab100b46f70..bcda1d59555 100644
--- a/source/blender/editors/space_clip/clip_editor.c
+++ b/source/blender/editors/space_clip/clip_editor.c
@@ -96,39 +96,6 @@ int ED_space_clip_tracking_poll(bContext *C)
return FALSE;
}
-int ED_space_clip_tracking_size_poll(bContext *C)
-{
- if (ED_space_clip_tracking_poll(C)) {
- MovieClip *clip = CTX_data_edit_movieclip(C);
-
- if (clip) {
- SpaceClip *sc = CTX_wm_space_clip(C);
- int width, height;
-
- BKE_movieclip_get_size(clip, &sc->user, &width, &height);
-
- return width > 0 && height > 0;
- }
- }
-
- return FALSE;
-}
-
-int ED_space_clip_tracking_frame_poll(bContext *C)
-{
- if (ED_space_clip_tracking_poll(C)) {
- MovieClip *clip = CTX_data_edit_movieclip(C);
-
- if (clip) {
- SpaceClip *sc = CTX_wm_space_clip(C);
-
- return BKE_movieclip_has_frame(clip, &sc->user);
- }
- }
-
- return FALSE;
-}
-
int ED_space_clip_maskedit_poll(bContext *C)
{
SpaceClip *sc = CTX_wm_space_clip(C);