History

more overlay wip

SamGondelman committed 7 years ago

Commit 5ce8f561 parent ca8d64b62 files · +620 −864Browse files

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

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+9−0
@@ -1038,6 +1038,15 @@ bool EntityScriptingInterface::isLoaded(const QUuid& id) { · 1037 unmodified lines
10381038 return toReturn;
10391039 }
10401040
1041+bool EntityScriptingInterface::isAddedEntity(const QUuid& id) {
1042+ bool toReturn = false;
1043+ _entityTree->withReadLock([&] {
1044+ EntityItemPointer entity = _entityTree->findEntityByEntityItemID(id);
1045+ toReturn = (bool)entity;
1046+ });
1047+ return toReturn;
1048+}
1049+
10411050 QSizeF EntityScriptingInterface::textSize(const QUuid& id, const QString& text) {
10421051 return EntityTree::textSize(id, text);
10431052 }