Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -47,14 +47,14 @@ bool EntityScriptingInterface::canRez() { · 46 unmodified lines | |||
| 47 | return nodeList->getThisNodeCanRez(); | 47 | return nodeList->getThisNodeCanRez(); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | void EntityScriptingInterface::setEntityTree(EntityTreePointer modelTree) { | 50 | void EntityScriptingInterface::setEntityTree(EntityTreePointer elementTree) { |
| 51 | if (_entityTree) { | 51 | if (_entityTree) { |
| 52 | disconnect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity); | 52 | disconnect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity); |
| 53 | disconnect(_entityTree.get(), &EntityTree::deletingEntity, this, &EntityScriptingInterface::deletingEntity); | 53 | disconnect(_entityTree.get(), &EntityTree::deletingEntity, this, &EntityScriptingInterface::deletingEntity); |
| 54 | disconnect(_entityTree.get(), &EntityTree::clearingEntities, this, &EntityScriptingInterface::clearingEntities); | 54 | disconnect(_entityTree.get(), &EntityTree::clearingEntities, this, &EntityScriptingInterface::clearingEntities); |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | _entityTree = modelTree; | 57 | _entityTree = elementTree; |
| 58 | 58 | ||
| 59 | if (_entityTree) { | 59 | if (_entityTree) { |
| 60 | connect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity); | 60 | connect(_entityTree.get(), &EntityTree::addingEntity, this, &EntityScriptingInterface::addingEntity); |