Trying to fix dependency shutdown
Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 27 files). Show all
Unified · Split
| @@ -1252,7 +1252,7 @@ bool EntityScriptingInterface::actionWorker(const QUuid& entityID, · 1251 unmodified lines | ||
| 1252 | 1252 | |
| 1253 | 1253 | EntityItemPointer entity; |
| 1254 | 1254 | bool doTransmit = false; |
| 1255 | − _entityTree->withWriteLock([&] { | |
| 1255 | + _entityTree->withWriteLock([this, &entity, entityID, myNodeID, &doTransmit, actor, &properties] { | |
| 1256 | 1256 | EntitySimulationPointer simulation = _entityTree->getSimulation(); |
| 1257 | 1257 | entity = _entityTree->findEntityByEntityItemID(entityID); |
| 1258 | 1258 | if (!entity) { |