Merge pull request #13508 from wayne-chen/crashEntityAppendPoint-case-12473

Fixing crash on appending a point to an entity
This commit is contained in:
John Conklin II 2018-07-02 12:36:51 -07:00 committed by GitHub
commit 7834bca39a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1269,6 +1269,8 @@ bool EntityScriptingInterface::appendPoint(QUuid entityID, const glm::vec3& poin
EntityItemPointer entity = static_cast<EntityItemPointer>(_entityTree->findEntityByEntityItemID(entityID));
if (!entity) {
qCDebug(entities) << "EntityScriptingInterface::setPoints no entity with ID" << entityID;
// There is no entity
return false;
}
EntityTypes::EntityType entityType = entity->getType();