From ced1367b6b93e41e086caca00c6f6154f4093224 Mon Sep 17 00:00:00 2001 From: Dmitry Stepanov Date: Fri, 22 Dec 2023 17:10:23 +0300 Subject: [PATCH] do not serialize the data of external resources --- fyrox-resource/src/untyped.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fyrox-resource/src/untyped.rs b/fyrox-resource/src/untyped.rs index 650d2dda0..28ae8f835 100644 --- a/fyrox-resource/src/untyped.rs +++ b/fyrox-resource/src/untyped.rs @@ -222,7 +222,10 @@ impl Visit for ResourceHeader { self.kind.visit("Kind", &mut region)?; self.type_uuid.visit("TypeUuid", &mut region)?; - self.state.visit("State", &mut region)?; + + if self.kind == ResourceKind::Embedded { + self.state.visit("State", &mut region)?; + } Ok(()) }