Skip to content

Commit

Permalink
Simplify ScriptableAvatar.cpp helper script engine lambda
Browse files Browse the repository at this point in the history
Co-authored-by: HifiExperiments <[email protected]>
  • Loading branch information
ksuprynowicz and HifiExperiments authored Apr 30, 2024
1 parent 9f80c9d commit 2010bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assignment-client/src/avatars/ScriptableAvatar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ void ScriptableAvatar::setAvatarEntityData(const AvatarEntityMap& avatarEntityDa
while (dataItr != avatarEntityData.end()) {
EntityItemProperties properties;
const QByteArray& blob = dataItr.value();
{
_helperScriptEngine.run( [&] {
if (!blob.isNull() && EntityItemProperties::blobToProperties(*_helperScriptEngine.get(), blob, properties)) {
if (!blob.isNull()) {
_helperScriptEngine.run([&] {
if (EntityItemProperties::blobToProperties(*_helperScriptEngine.get(), blob, properties)) {
newProperties[dataItr.key()] = properties;
}
});
Expand Down

0 comments on commit 2010bb4

Please sign in to comment.