svn merge ^/trunk/blender -r42991:43009
[blender.git] / source / blender / editors / transform / transform_conversions.c
index e916ae3486d5cc7083a16cdcd23f2bc6b42a8d5f..595303c0da45d3aac8b88bedad142105b81e467a 100644 (file)
@@ -4264,6 +4264,7 @@ static short constraints_list_needinv(TransInfo *t, ListBase *list)
                                if (con->type == CONSTRAINT_TYPE_CHILDOF) return 1;
                                if (con->type == CONSTRAINT_TYPE_FOLLOWPATH) return 1;
                                if (con->type == CONSTRAINT_TYPE_CLAMPTO) return 1;
+                               if (con->type == CONSTRAINT_TYPE_OBJECTSOLVER) return 1;
                                
                                        /* constraints that require this only under special conditions */
                                if (con->type == CONSTRAINT_TYPE_ROTLIKE) {
@@ -5441,6 +5442,7 @@ static void createTransTrackingData(bContext *C, TransInfo *t)
        TransData2D *td2d;
        SpaceClip *sc = CTX_wm_space_clip(C);
        MovieClip *clip = ED_space_clip(sc);
+       ListBase *tracksbase= BKE_tracking_get_tracks(&clip->tracking);
        MovieTrackingTrack *track;
        MovieTrackingMarker *marker;
        TransDataTracking *tdt;
@@ -5454,7 +5456,7 @@ static void createTransTrackingData(bContext *C, TransInfo *t)
        /* count */
        t->total = 0;
 
-       track = clip->tracking.tracks.first;
+       track = tracksbase->first;
        while(track) {
                if(TRACK_VIEW_SELECTED(sc, track) && (track->flag&TRACK_LOCKED)==0) {
                        marker= BKE_tracking_get_marker(track, framenr);
@@ -5481,7 +5483,7 @@ static void createTransTrackingData(bContext *C, TransInfo *t)
        t->customFree= transDataTrackingFree;
 
        /* create actual data */
-       track = clip->tracking.tracks.first;
+       track = tracksbase->first;
        while(track) {
                if(TRACK_VIEW_SELECTED(sc, track) && (track->flag&TRACK_LOCKED)==0) {
                        marker= BKE_tracking_get_marker(track, framenr);