Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 12 files). Show all
Unified · Split
| @@ -23,6 +23,7 @@ EntityScriptingInterface::EntityScriptingInterface() : · 22 unmodified lines | ||
| 23 | 23 | { |
| 24 | 24 | auto nodeList = DependencyManager::get<NodeList>(); |
| 25 | 25 | connect(nodeList.data(), &NodeList::canAdjustLocksChanged, this, &EntityScriptingInterface::canAdjustLocksChanged); |
| 26 | + connect(nodeList.data(), &NodeList::canRezChanged, this, &EntityScriptingInterface::canRezChanged); | |
| 26 | 27 | } |
| 27 | 28 | |
| 28 | 29 | void EntityScriptingInterface::queueEntityMessage(PacketType packetType, |
| @@ -30,12 +31,15 @@ void EntityScriptingInterface::queueEntityMessage(PacketType packetType, · 1 unmodified line | ||
| 30 | 31 | getEntityPacketSender()->queueEditEntityMessage(packetType, entityID, properties); |
| 31 | 32 | } |
| 32 | 33 | |
| 33 | − | |
| 34 | 34 | bool EntityScriptingInterface::canAdjustLocks() { |
| 35 | 35 | auto nodeList = DependencyManager::get<NodeList>(); |
| 36 | 36 | return nodeList->getThisNodeCanAdjustLocks(); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | +bool EntityScriptingInterface::canRez() { | |
| 40 | + auto nodeList = DependencyManager::get<NodeList>(); | |
| 41 | + return nodeList->getThisNodeCanRez(); | |
| 42 | +} | |
| 39 | 43 | |
| 40 | 44 | void EntityScriptingInterface::setEntityTree(EntityTree* modelTree) { |
| 41 | 45 | if (_entityTree) { |