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>2013-12-20 20:16:53 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-12-20 20:17:43 +0400
commitaec90a8fafe19dfad110d9473d3f70e3aeeb8771 (patch)
treebd824d0017a925fe5f3a1bd2ee19892cabdd6dba /source/blender/editors/space_clip/clip_draw.c
parent26aeb81d003278e30fc36255ba90ca81c3a655e6 (diff)
Fix wrong display of movie clip cache with mask overlay enabled
Diffstat (limited to 'source/blender/editors/space_clip/clip_draw.c')
-rw-r--r--source/blender/editors/space_clip/clip_draw.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/clip_draw.c b/source/blender/editors/space_clip/clip_draw.c
index 79607163913..c029ced5688 100644
--- a/source/blender/editors/space_clip/clip_draw.c
+++ b/source/blender/editors/space_clip/clip_draw.c
@@ -180,6 +180,7 @@ static void draw_movieclip_cache(SpaceClip *sc, ARegion *ar, MovieClip *clip, Sc
MovieTrackingReconstruction *reconstruction = BKE_tracking_get_active_reconstruction(tracking);
glEnable(GL_BLEND);
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
/* cache background */
glColor4ub(128, 128, 255, 64);
@@ -1799,6 +1800,14 @@ void clip_draw_main(const bContext *C, SpaceClip *sc, ARegion *ar)
draw_movieclip_notes(sc, ar);
}
+void clip_draw_cache_and_notes(const bContext *C, SpaceClip *sc, ARegion *ar)
+{
+ Scene *scene = CTX_data_scene(C);
+ MovieClip *clip = ED_space_clip_get_clip(sc);
+ draw_movieclip_cache(sc, ar, clip, scene);
+ draw_movieclip_notes(sc, ar);
+}
+
/* draw grease pencil */
void clip_draw_grease_pencil(bContext *C, int onlyv2d)
{