Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 5 files). Show all
Unified · Split
| @@ -97,7 +97,7 @@ void EntityScriptServer::run() { · 96 unmodified lines | |||
| 97 | auto tree = _entityViewer.getTree().get(); | 97 | auto tree = _entityViewer.getTree().get(); |
| 98 | connect(tree, &EntityTree::deletingEntity, this, &EntityScriptServer::deletingEntity, Qt::QueuedConnection); | 98 | connect(tree, &EntityTree::deletingEntity, this, &EntityScriptServer::deletingEntity, Qt::QueuedConnection); |
| 99 | connect(tree, &EntityTree::addingEntity, this, &EntityScriptServer::addingEntity, Qt::QueuedConnection); | 99 | connect(tree, &EntityTree::addingEntity, this, &EntityScriptServer::addingEntity, Qt::QueuedConnection); |
| 100 | connect(tree, &EntityTree::entityScriptChanging, this, &EntityScriptServer::entitySciptChanging, Qt::QueuedConnection); | 100 | connect(tree, &EntityTree::entityScriptChanging, this, &EntityScriptServer::entityScriptChanging, Qt::QueuedConnection); |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | void EntityScriptServer::nodeActivated(SharedNodePointer activatedNode) { | 103 | void EntityScriptServer::nodeActivated(SharedNodePointer activatedNode) { |
| @@ -222,7 +222,7 @@ void EntityScriptServer::deletingEntity(const EntityItemID& entityID) { · 118 unmodified lines | |||
| 222 | } | 222 | } |
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | void EntityScriptServer::entitySciptChanging(const EntityItemID& entityID, const bool reload) { | 225 | void EntityScriptServer::entityScriptChanging(const EntityItemID& entityID, const bool reload) { |
| 226 | if (_entityViewer.getTree() && !_shuttingDown) { | 226 | if (_entityViewer.getTree() && !_shuttingDown) { |
| 227 | _entitiesScriptEngine->unloadEntityScript(entityID); | 227 | _entitiesScriptEngine->unloadEntityScript(entityID); |
| 228 | checkAndCallPreload(entityID, reload); | 228 | checkAndCallPreload(entityID, reload); |