Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1753,3 +1753,31 @@ glm::mat4 EntityScriptingInterface::getEntityLocalTransform(const QUuid& entityI · 1752 unmodified lines | |||
| 1753 | } | 1753 | } |
| 1754 | return result; | 1754 | return result; |
| 1755 | } | 1755 | } |
| 1756 | |||
| 1757 | bool EntityScriptingInterface::verifyStaticCertificateProperties(const QUuid& entityID) { | ||
| 1758 | bool result; | ||
| 1759 | if (_entityTree) { | ||
| 1760 | _entityTree->withReadLock([&] { | ||
| 1761 | EntityItemPointer entity = _entityTree->findEntityByEntityItemID(EntityItemID(entityID)); | ||
| 1762 | if (entity) { | ||
| 1763 | result = entity->verifyStaticCertificateProperties(); | ||
| 1764 | } | ||
| 1765 | }); | ||
| 1766 | } | ||
| 1767 | return result; | ||
| 1768 | } | ||
| 1769 | |||
| 1770 | #ifdef DEBUG_CERT | ||
| 1771 | QString EntityScriptingInterface::computeCertificateID(const QUuid& entityID) { | ||
| 1772 | QString result; | ||
| 1773 | if (_entityTree) { | ||
| 1774 | _entityTree->withReadLock([&] { | ||
| 1775 | EntityItemPointer entity = _entityTree->findEntityByEntityItemID(EntityItemID(entityID)); | ||
| 1776 | if (entity) { | ||
| 1777 | result = entity->computeCertificateID(); | ||
| 1778 | } | ||
| 1779 | }); | ||
| 1780 | } | ||
| 1781 | return result; | ||
| 1782 | } | ||
| 1783 | #endif | ||