Fix entities being incorrectly restored
This commit is contained in:
parent
20718ca05c
commit
5708ef385c
|
@ -58,6 +58,8 @@ export class SerializerInternal {
|
||||||
variant: data.variant,
|
variant: data.variant,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
entity.uid = payload.uid;
|
||||||
|
|
||||||
this.deserializeComponents(entity, payload.components);
|
this.deserializeComponents(entity, payload.components);
|
||||||
|
|
||||||
root.entityMgr.registerEntity(entity, payload.uid);
|
root.entityMgr.registerEntity(entity, payload.uid);
|
||||||
|
|
Reference in New Issue