fix retargetting script export

pushed wrong branch, this fixes the wrong parameter count

REVIEW: 126981
This commit is contained in:
Thomas Lübking 2016-02-16 15:06:56 +01:00
parent cae90bb035
commit c9c86f29fb

View file

@ -378,7 +378,7 @@ QScriptValue kwinEffectRetarget(QScriptContext *context, QScriptEngine *engine)
FPx2 target;
fpx2FromScriptValue(context->argument(1), target);
const int remainingTime = context->argumentCount() == 2 ? context->argument(1).toVariant().toInt() : -1;
const int remainingTime = context->argumentCount() == 3 ? context->argument(2).toVariant().toInt() : -1;
foreach (const quint64 &animId, animIds) {
ok |= engine->newVariant(effect->retarget(animId, target, remainingTime)).toBool();
}