serialization fixing world unit test and missing serialize for inert.
This commit is contained in:
@@ -140,4 +140,6 @@ Entity* deserialize_entity(Archive& ar, EntityManager& manager)
|
||||
}
|
||||
|
||||
entity_base->is_dirty = false;
|
||||
|
||||
return entity_base;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
#include <Entity/entity_types.h>
|
||||
|
||||
#include <Core/Common/serialization.h>
|
||||
|
||||
DEFINE_ENTITY_VERSIONED(Inert, 1)
|
||||
internal void serialize(Archive& /*ar*/, uint16 /*version*/, Inert& /*inert*/) {}
|
||||
internal void serialize(Archive& ar, uint16 /*version*/, Inert& inert)
|
||||
{
|
||||
SERIALIZE(ar, MeshInstance, inert.MeshInstance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user