Showing the changes to assignment-client/src/avatars/ScriptableAvatar.cpp (1 of 1 file). Show all
Unified · Split
| @@ -341,9 +341,9 @@ void ScriptableAvatar::setAvatarEntityData(const AvatarEntityMap& avatarEntityDa · 340 unmodified lines | ||
| 341 | 341 | while (dataItr != avatarEntityData.end()) { |
| 342 | 342 | EntityItemProperties properties; |
| 343 | 343 | const QByteArray& blob = dataItr.value(); |
| 344 | − { | |
| 345 | − _helperScriptEngine.run( [&] { | |
| 346 | − if (!blob.isNull() && EntityItemProperties::blobToProperties(*_helperScriptEngine.get(), blob, properties)) { | |
| 344 | + if (!blob.isNull()) { | |
| 345 | + _helperScriptEngine.run([&] { | |
| 346 | + if (EntityItemProperties::blobToProperties(*_helperScriptEngine.get(), blob, properties)) { | |
| 347 | 347 | newProperties[dataItr.key()] = properties; |
| 348 | 348 | } |
| 349 | 349 | }); |