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 | while (dataItr != avatarEntityData.end()) { | 341 | while (dataItr != avatarEntityData.end()) { |
| 342 | EntityItemProperties properties; | 342 | EntityItemProperties properties; |
| 343 | const QByteArray& blob = dataItr.value(); | 343 | const QByteArray& blob = dataItr.value(); |
| 344 | { | 344 | if (!blob.isNull()) { |
| 345 | _helperScriptEngine.run( [&] { | 345 | _helperScriptEngine.run([&] { |
| 346 | if (!blob.isNull() && EntityItemProperties::blobToProperties(*_helperScriptEngine.get(), blob, properties)) { | 346 | if (EntityItemProperties::blobToProperties(*_helperScriptEngine.get(), blob, properties)) { |
| 347 | newProperties[dataItr.key()] = properties; | 347 | newProperties[dataItr.key()] = properties; |
| 348 | } | 348 | } |
| 349 | }); | 349 | }); |