mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 08:26:36 +02:00
Merge pull request #935 from HifiExperiments/jointName
conversionPenaltyScore should accumulate
This commit is contained in:
commit
376cd078e5
1 changed files with 1 additions and 1 deletions
|
@ -1040,7 +1040,7 @@ void ScriptMethodV8Proxy::call(const v8::FunctionCallbackInfo<v8::Value>& argume
|
||||||
} else {
|
} else {
|
||||||
qVarArgLists[i].append(varArgVal);
|
qVarArgLists[i].append(varArgVal);
|
||||||
const QVariant& converted = qVarArgLists[i].back();
|
const QVariant& converted = qVarArgLists[i].back();
|
||||||
conversionPenaltyScore = _engine->computeCastPenalty(V8ScriptValue(_engine, argVal), methodArgTypeId);
|
conversionPenaltyScore += _engine->computeCastPenalty(V8ScriptValue(_engine, argVal), methodArgTypeId);
|
||||||
|
|
||||||
// a lot of type conversion assistance thanks to https://stackoverflow.com/questions/28457819/qt-invoke-method-with-qvariant
|
// a lot of type conversion assistance thanks to https://stackoverflow.com/questions/28457819/qt-invoke-method-with-qvariant
|
||||||
// A const_cast is needed because calling data() would detach the QVariant.
|
// A const_cast is needed because calling data() would detach the QVariant.
|
||||||
|
|
Loading…
Reference in a new issue