blending modes are loaded modularly now

This commit is contained in:
itsmattkc
2019-03-10 10:10:52 +11:00
parent c056c9d803
commit a0851afc96
32 changed files with 352 additions and 15 deletions
+3
View File
@@ -36,6 +36,7 @@
#include "io/math.h"
#include "ui/labelslider.h"
#include "ui/comboboxex.h"
#include "project/effectloaders.h"
#include "panels/project.h"
#include "debug.h"
@@ -78,9 +79,11 @@ TransformEffect::TransformEffect(Clip* c, const EffectMeta* em) : Effect(c, em)
blend_mode_box->add_combo_item(tr("Normal"), -1);
// add loaded blending modes
olive::effects_loaded.lock();
for (int i=0;i<olive::blend_modes.size();i++) {
blend_mode_box->add_combo_item(olive::blend_modes.at(i).name, i);
}
olive::effects_loaded.unlock();
// set up gizmos
top_left_gizmo = add_gizmo(GIZMO_TYPE_DOT);