X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Flocalsession.C;h=e0e8efa87c4f2dfbc7de39d34e6c6061051aacc7;hb=fb3e53778e49a406768506de9bf8edfd3d4c36e6;hp=0465795f50dd7bdb12ebc88a9e5c66af58f28b83;hpb=a64e7d16c44bba0d137936227fc55871bb26c903;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/localsession.C b/cinelerra-5.1/cinelerra/localsession.C index 0465795f..e0e8efa8 100644 --- a/cinelerra-5.1/cinelerra/localsession.C +++ b/cinelerra-5.1/cinelerra/localsession.C @@ -64,6 +64,7 @@ LocalSession::LocalSession(EDL *edl) strcpy(clip_notes, _("Hello world")); strcpy(clip_icon, ""); clipboard_length = 0; + asset2edl = 0; loop_playback = 0; loop_start = loop_end = 0; playback_start = -1; @@ -79,24 +80,13 @@ LocalSession::LocalSession(EDL *edl) track_start[i] = 0; } + reset_view_limits(); automation_mins[AUTOGROUPTYPE_AUDIO_FADE] = -80; automation_maxs[AUTOGROUPTYPE_AUDIO_FADE] = 6; - automation_mins[AUTOGROUPTYPE_VIDEO_FADE] = 0; automation_maxs[AUTOGROUPTYPE_VIDEO_FADE] = 100; - - automation_mins[AUTOGROUPTYPE_ZOOM] = 0.005; - automation_maxs[AUTOGROUPTYPE_ZOOM] = 5.000; - automation_mins[AUTOGROUPTYPE_SPEED] = 0.005; automation_maxs[AUTOGROUPTYPE_SPEED] = 5.000; - - automation_mins[AUTOGROUPTYPE_X] = -100; - automation_maxs[AUTOGROUPTYPE_X] = 100; - - automation_mins[AUTOGROUPTYPE_Y] = -100; - automation_maxs[AUTOGROUPTYPE_Y] = 100; - automation_mins[AUTOGROUPTYPE_INT255] = 0; automation_maxs[AUTOGROUPTYPE_INT255] = 255; @@ -108,6 +98,7 @@ LocalSession::LocalSession(EDL *edl) red = green = blue = 0; red_max = green_max = blue_max = 0; use_max = 0; + solo_track_id = -1; } LocalSession::~LocalSession() @@ -147,6 +138,7 @@ void LocalSession::copy_from(LocalSession *that) green_max = that->green_max; blue_max = that->blue_max; use_max = that->use_max; + solo_track_id = that->solo_track_id; for (int i = 0; i < AUTOGROUPTYPE_COUNT; i++) { automation_mins[i] = that->automation_mins[i]; @@ -237,6 +229,8 @@ void LocalSession::synchronize_params(LocalSession *that) red_max = that->red_max; green_max = that->green_max; blue_max = that->blue_max; + if( solo_track_id < 0 || that->solo_track_id < 0 ) + solo_track_id = that->solo_track_id; } @@ -500,3 +494,13 @@ int LocalSession::outpoint_valid() return out_point >= 0; } +void LocalSession::reset_view_limits() +{ + automation_mins[AUTOGROUPTYPE_ZOOM] = 0.005; + automation_maxs[AUTOGROUPTYPE_ZOOM] = 5.000; + automation_mins[AUTOGROUPTYPE_X] = -100; + automation_maxs[AUTOGROUPTYPE_X] = 100; + automation_mins[AUTOGROUPTYPE_Y] = -100; + automation_maxs[AUTOGROUPTYPE_Y] = 100; +} +