further corrections

This commit is contained in:
itsmattkc
2018-11-01 19:40:50 +11:00
parent 0ab29e1186
commit c5324c15b9
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -302,7 +302,7 @@ Effect::Effect(Clip* c, const EffectMeta *em) :
} else if (attr.name() == "bf") {
color.setBlueF(attr.value().toFloat());
} else if (attr.name() == "hex") {
color.setNamedColor(attr.value());
color.setNamedColor(attr.value().toString());
}
}
field->set_color_value(color);
@@ -374,7 +374,7 @@ Effect::Effect(Clip* c, const EffectMeta *em) :
for (int i=0;i<attributes.size();i++) {
const QXmlStreamAttribute& attr = attributes.at(i);
if (attr.name() == "script") {
QFile script_file = get_effects_dir() + "/" + attr.value().toString();
QFile script_file(get_effects_dir() + "/" + attr.value().toString());
if (script_file.open(QFile::ReadOnly)) {
script = script_file.readAll();
wrapper_obj = jsEngine.newQObject(&painter_wrapper);
-2
View File
@@ -80,6 +80,4 @@ void ShakeEffect::process_coords(double timecode, GLTextureCoords& coords) {
coords.vertexBottomRightY += yoff;
glRotatef(rotoff, 0, 0, 1);
evolution++;
}