History

returning false if there is no entity to connect to

Wayne Chen committed 8 years ago

Commit 9e3626c1 parent fa29bb51 file · +2 −0Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+2−0
@@ -1269,6 +1269,8 @@ bool EntityScriptingInterface::appendPoint(QUuid entityID, const glm::vec3& poin · 1268 unmodified lines
12691269 EntityItemPointer entity = static_cast<EntityItemPointer>(_entityTree->findEntityByEntityItemID(entityID));
12701270 if (!entity) {
12711271 qCDebug(entities) << "EntityScriptingInterface::setPoints no entity with ID" << entityID;
1272+ // There is no entity
1273+ return false;
12721274 }
12731275
12741276 EntityTypes::EntityType entityType = entity->getType();