mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 11:22:10 +02:00
Simplify ScriptableAvatar.cpp helper script engine lambda
Co-authored-by: HifiExperiments <53453710+HifiExperiments@users.noreply.github.com>
This commit is contained in:
parent
9f80c9de58
commit
2010bb44e8
1 changed files with 3 additions and 3 deletions
|
@ -341,9 +341,9 @@ void ScriptableAvatar::setAvatarEntityData(const AvatarEntityMap& avatarEntityDa
|
||||||
while (dataItr != avatarEntityData.end()) {
|
while (dataItr != avatarEntityData.end()) {
|
||||||
EntityItemProperties properties;
|
EntityItemProperties properties;
|
||||||
const QByteArray& blob = dataItr.value();
|
const QByteArray& blob = dataItr.value();
|
||||||
{
|
if (!blob.isNull()) {
|
||||||
_helperScriptEngine.run( [&] {
|
_helperScriptEngine.run([&] {
|
||||||
if (!blob.isNull() && EntityItemProperties::blobToProperties(*_helperScriptEngine.get(), blob, properties)) {
|
if (EntityItemProperties::blobToProperties(*_helperScriptEngine.get(), blob, properties)) {
|
||||||
newProperties[dataItr.key()] = properties;
|
newProperties[dataItr.key()] = properties;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue