Commit 9b1a25ec authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

default effects to video

parent 1444cbd3
Pipeline #7133 passed with stage
in 15 minutes and 15 seconds
......@@ -118,6 +118,8 @@ void EffectsRepository::parseCustomAssetFile(const QString &file_name, std::unor
result.xml = currentEffect;
// Parse type information.
// Video effect by default
result.type = EffectType::Video;
QString type = currentEffect.attribute(QStringLiteral("type"), QString());
if (type == QLatin1String("audio")) {
result.type = EffectType::Audio;
......@@ -146,10 +148,7 @@ void EffectsRepository::parseCustomAssetFile(const QString &file_name, std::unor
}
file.close();
}
} else {
result.type = EffectType::Video;
}
customAssets[result.id] = result;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment