fixed #390
This commit is contained in:
@@ -18,6 +18,16 @@ VoidEffect::VoidEffect(Clip *c, const QString& n) : Effect(c, nullptr) {
|
||||
EffectRow* row = add_row(tr("Missing Effect"), false, false);
|
||||
row->add_widget(new QLabel(display_name));
|
||||
container->setText(display_name);
|
||||
|
||||
void_meta.type = EFFECT_TYPE_EFFECT;
|
||||
meta = &void_meta;
|
||||
}
|
||||
|
||||
Effect *VoidEffect::copy(Clip *c) {
|
||||
Effect* copy = new VoidEffect(c, name);
|
||||
copy->set_enabled(is_enabled());
|
||||
copy_field_keyframes(copy);
|
||||
return copy;
|
||||
}
|
||||
|
||||
void VoidEffect::load(QXmlStreamReader &stream) {
|
||||
|
||||
@@ -11,11 +11,14 @@
|
||||
|
||||
class VoidEffect : public Effect {
|
||||
public:
|
||||
VoidEffect(Clip* c, const QString& n);
|
||||
void load(QXmlStreamReader &stream) override;
|
||||
void save(QXmlStreamWriter &stream) override;
|
||||
VoidEffect(Clip* c, const QString& n);
|
||||
|
||||
virtual Effect* copy(Clip* c) override;
|
||||
virtual void load(QXmlStreamReader &stream) override;
|
||||
virtual void save(QXmlStreamWriter &stream) override;
|
||||
private:
|
||||
QByteArray bytes;
|
||||
QByteArray bytes;
|
||||
EffectMeta void_meta;
|
||||
};
|
||||
|
||||
#endif // VOIDEFFECT_H
|
||||
|
||||
Reference in New Issue
Block a user