Commit 9c542453 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle

Fix some compositions appearing twice. Related to #414

parent dc1fe1eb
Pipeline #9719 passed with stage
in 13 minutes and 20 seconds
......@@ -274,7 +274,7 @@ template <typename AssetType> QVector<QPair<QString, QString>> AbstractAssetsRep
QVector<QPair<QString, QString>> res;
res.reserve((int)m_assets.size());
for (const auto &asset : m_assets) {
if (!KdenliveSettings::gpu_accel() && asset.first.contains(QLatin1String("movit."))) {
if (((int) (asset.second.type) == -1) || (!KdenliveSettings::gpu_accel() && asset.first.contains(QLatin1String("movit.")))) {
// Hide GPU effects/compositions when movit disabled
continue;
}
......
......@@ -33,7 +33,7 @@
* Note that this class is a Singleton
*/
enum class EffectType { Preferred, Video, Audio, Custom, CustomAudio, Favorites, Hidden };
enum class EffectType { Preferred, Video, Audio, Custom, CustomAudio, Favorites, Hidden = -1 };
Q_DECLARE_METATYPE(EffectType)
class EffectsRepository : public AbstractAssetsRepository<EffectType>
......
......@@ -33,7 +33,7 @@
* Note that this class is a Singleton
*/
enum class TransitionType { AudioComposition, VideoComposition, AudioTransition, VideoTransition, Favorites, Hidden };
enum class TransitionType { AudioComposition, VideoComposition, AudioTransition, VideoTransition, Favorites, Hidden = -1 };
Q_DECLARE_METATYPE(TransitionType)
class TransitionsRepository : public AbstractAssetsRepository<TransitionType>
......
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