minor code improvement
This commit is contained in:
@@ -756,7 +756,6 @@ bool Project::load_worker(QFile& f, QXmlStreamReader& stream, int type) {
|
||||
|
||||
// backwards compatibility code
|
||||
c->autoscale = false;
|
||||
c->speed = 1.0;
|
||||
|
||||
c->media = NULL;
|
||||
for (int j=0;j<stream.attributes().size();j++) {
|
||||
|
||||
@@ -24,6 +24,7 @@ Clip::Clip(Sequence* s) :
|
||||
timeline_out(0),
|
||||
track(0),
|
||||
undeletable(0),
|
||||
speed(1.0),
|
||||
media(NULL),
|
||||
opening_transition(NULL),
|
||||
closing_transition(NULL),
|
||||
|
||||
@@ -330,7 +330,6 @@ void TimelineWidget::dropEvent(QDropEvent* event) {
|
||||
c->timeline_out = g.out;
|
||||
c->clip_in = g.clip_in;
|
||||
c->track = g.track;
|
||||
c->speed = 1.0;
|
||||
if (c->media_type == MEDIA_TYPE_FOOTAGE) {
|
||||
Media* m = static_cast<Media*>(c->media);
|
||||
if (m->video_tracks.size() == 0) {
|
||||
@@ -618,8 +617,6 @@ void TimelineWidget::mouseReleaseEvent(QMouseEvent *event) {
|
||||
c->color_b = 64;
|
||||
c->track = g.track;
|
||||
|
||||
c->speed = 1.0;
|
||||
|
||||
QVector<Clip*> add;
|
||||
add.append(c);
|
||||
ca->append(new AddClipCommand(sequence, add));
|
||||
|
||||
Reference in New Issue
Block a user