Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -71,7 +71,6 @@ EntityItemID EntityScriptingInterface::identifyEntity(EntityItemID entityID) { · 70 unmodified lines | |||
| 71 | 71 | ||
| 72 | EntityItemProperties EntityScriptingInterface::getEntityProperties(EntityItemID entityID) { | 72 | EntityItemProperties EntityScriptingInterface::getEntityProperties(EntityItemID entityID) { |
| 73 | EntityItemProperties results; | 73 | EntityItemProperties results; |
| 74 | |||
| 75 | EntityItemID identity = identifyEntity(entityID); | 74 | EntityItemID identity = identifyEntity(entityID); |
| 76 | if (_entityTree) { | 75 | if (_entityTree) { |
| 77 | _entityTree->lockForRead(); | 76 | _entityTree->lockForRead(); |
| @@ -102,7 +101,6 @@ EntityItemProperties EntityScriptingInterface::getEntityProperties(EntityItemID · 24 unmodified lines | |||
| 102 | } | 101 | } |
| 103 | 102 | ||
| 104 | EntityItemID EntityScriptingInterface::editEntity(EntityItemID entityID, const EntityItemProperties& properties) { | 103 | EntityItemID EntityScriptingInterface::editEntity(EntityItemID entityID, const EntityItemProperties& properties) { |
| 105 | |||
| 106 | EntityItemID actualID = entityID; | 104 | EntityItemID actualID = entityID; |
| 107 | // if the entity is unknown, attempt to look it up | 105 | // if the entity is unknown, attempt to look it up |
| 108 | if (!entityID.isKnownID) { | 106 | if (!entityID.isKnownID) { |