Camera tracking integration
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 27 Jun 2011 14:45:50 +0000 (14:45 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 27 Jun 2011 14:45:50 +0000 (14:45 +0000)
===========================

Fixed stypid typo which was lead to crash when switching to clip editor.

source/blender/editors/space_clip/space_clip.c

index 433e06a043e39bcf112ff090aeb0da7f70784009..c268a6b85b260ebc2770f393f00b20edb5e63d39 100644 (file)
@@ -369,7 +369,7 @@ static void clip_main_area_draw(const bContext *C, ARegion *ar)
 
        /* if trcking is in progress, we should sunchronize framenr from clipuser
           so latest tracked frame would be shown */
-       if(clip->tracking_context)
+       if(clip && clip->tracking_context)
                BKE_tracking_sync_user(&sc->user, clip->tracking_context);
 
        if(sc->flag&SC_LOCK_SELECTION)