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 | 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 | 109 | void EntityScriptingInterface::setEntityTree(EntityTreePointer elementTree) { |
| 105 | 110 | if (_entityTree) { |
| 106 | 111 | disconnect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity); |