Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -407,7 +407,7 @@ QUuid EntityScriptingInterface::editEntity(QUuid id, const EntityItemProperties& · 406 unmodified lines | |||
| 407 | // return QUuid(); | 407 | // return QUuid(); |
| 408 | // } | 408 | // } |
| 409 | 409 | ||
| 410 | bool entityFound = false; | 410 | bool entityFound { false }; |
| 411 | _entityTree->withReadLock([&] { | 411 | _entityTree->withReadLock([&] { |
| 412 | EntityItemPointer entity = _entityTree->findEntityByEntityItemID(entityID); | 412 | EntityItemPointer entity = _entityTree->findEntityByEntityItemID(entityID); |
| 413 | if (entity) { | 413 | if (entity) { |
| @@ -469,7 +469,7 @@ QUuid EntityScriptingInterface::editEntity(QUuid id, const EntityItemProperties& · 55 unmodified lines | |||
| 469 | if (entityFound) { | 469 | if (entityFound) { |
| 470 | queueEntityMessage(PacketType::EntityEdit, entityID, properties); | 470 | queueEntityMessage(PacketType::EntityEdit, entityID, properties); |
| 471 | } else { | 471 | } else { |
| 472 | qDebug() << "warning: attempted edit on unknown entity: " << id; | 472 | qCWarning(entities) << "attempted edit on unknown entity: " << id; |
| 473 | } | 473 | } |
| 474 | return id; | 474 | return id; |
| 475 | } | 475 | } |