Camera tracking integration
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 17 Jun 2011 15:00:28 +0000 (15:00 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 17 Jun 2011 15:00:28 +0000 (15:00 +0000)
===========================

Made a typo when was applying locally created patch.
Fixes crash when switching to "Movie" in 3d viewport background.

source/blender/editors/space_view3d/view3d_draw.c

index f7870e65e2d15733a42af2202502389983b6f4f1..70dcf0944a8bcc71e228ab3f0d9d2b55f54b193d 100644 (file)
@@ -1636,7 +1636,7 @@ static void draw_viewport_clips(View3D *v3d)
                if(bgpic->source==V3D_BGPIC_MOVIE) {
                        clip= bgpic->clip;
 
                if(bgpic->source==V3D_BGPIC_MOVIE) {
                        clip= bgpic->clip;
 
-                       if((clip && clip->id.flag&LIB_DOIT)==0) {
+                       if(clip && (clip->id.flag&LIB_DOIT)==0) {
                                draw_clip(clip, dt);
 
                                bgpic->clip->id.flag|= LIB_DOIT;
                                draw_clip(clip, dt);
 
                                bgpic->clip->id.flag|= LIB_DOIT;