Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 31 files). Show all
Unified · Split
| @@ -101,6 +101,11 @@ bool EntityScriptingInterface::canWriteAssets() { · 100 unmodified lines | |||
| 101 | return nodeList->getThisNodeCanWriteAssets(); | 101 | return nodeList->getThisNodeCanWriteAssets(); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | bool EntityScriptingInterface::canReplaceContent() { | ||
| 105 | auto nodeList = DependencyManager::get<NodeList>(); | ||
| 106 | return nodeList->getThisNodeCanReplaceContent(); | ||
| 107 | } | ||
| 108 | |||
| 104 | void EntityScriptingInterface::setEntityTree(EntityTreePointer elementTree) { | 109 | void EntityScriptingInterface::setEntityTree(EntityTreePointer elementTree) { |
| 105 | if (_entityTree) { | 110 | if (_entityTree) { |
| 106 | disconnect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity); | 111 | disconnect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity); |