mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
Merge pull request #12462 from SamGondelman/entityDelete
Fix EntityItems not getting destroyed
This commit is contained in:
commit
e10af9b83d
2 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
|||
#include "SceneScriptingInterface.h"
|
||||
|
||||
OctreePacketProcessor::OctreePacketProcessor() {
|
||||
setObjectName("Octree Packet Processor");
|
||||
|
||||
auto& packetReceiver = DependencyManager::get<NodeList>()->getPacketReceiver();
|
||||
|
||||
packetReceiver.registerDirectListenerForTypes({ PacketType::OctreeStats, PacketType::EntityData, PacketType::EntityErase },
|
||||
|
|
|
@ -97,6 +97,7 @@ EntityItemPointer EntityTypes::constructEntityItem(EntityType entityType, const
|
|||
auto mutableProperties = properties;
|
||||
mutableProperties.markAllChanged();
|
||||
newEntityItem = factory(entityID, mutableProperties);
|
||||
newEntityItem->moveToThread(qApp->thread());
|
||||
}
|
||||
return newEntityItem;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue