Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 11 files). Show all
Unified · Split
| @@ -32,6 +32,7 @@ EntityScriptingInterface::EntityScriptingInterface(bool bidOnSimulationOwnership · 31 unmodified lines | |||
| 32 | auto nodeList = DependencyManager::get<NodeList>(); | 32 | auto nodeList = DependencyManager::get<NodeList>(); |
| 33 | connect(nodeList.data(), &NodeList::isAllowedEditorChanged, this, &EntityScriptingInterface::canAdjustLocksChanged); | 33 | connect(nodeList.data(), &NodeList::isAllowedEditorChanged, this, &EntityScriptingInterface::canAdjustLocksChanged); |
| 34 | connect(nodeList.data(), &NodeList::canRezChanged, this, &EntityScriptingInterface::canRezChanged); | 34 | connect(nodeList.data(), &NodeList::canRezChanged, this, &EntityScriptingInterface::canRezChanged); |
| 35 | connect(nodeList.data(), &NodeList::canRezTmpChanged, this, &EntityScriptingInterface::canRezTmpChanged); | ||
| 35 | } | 36 | } |
| 36 | 37 | ||
| 37 | void EntityScriptingInterface::queueEntityMessage(PacketType packetType, | 38 | void EntityScriptingInterface::queueEntityMessage(PacketType packetType, |
| @@ -49,6 +50,11 @@ bool EntityScriptingInterface::canRez() { · 11 unmodified lines | |||
| 49 | return nodeList->getThisNodeCanRez(); | 50 | return nodeList->getThisNodeCanRez(); |
| 50 | } | 51 | } |
| 51 | 52 | ||
| 53 | bool EntityScriptingInterface::canRezTmp() { | ||
| 54 | auto nodeList = DependencyManager::get<NodeList>(); | ||
| 55 | return nodeList->getThisNodeCanRezTmp(); | ||
| 56 | } | ||
| 57 | |||
| 52 | void EntityScriptingInterface::setEntityTree(EntityTreePointer elementTree) { | 58 | void EntityScriptingInterface::setEntityTree(EntityTreePointer elementTree) { |
| 53 | if (_entityTree) { | 59 | if (_entityTree) { |
| 54 | disconnect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity); | 60 | disconnect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity); |