fix retargetting script export
pushed wrong branch, this fixes the wrong parameter count REVIEW: 126981
This commit is contained in:
parent
cae90bb035
commit
c9c86f29fb
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue