bnoazx005 / TDEngine2

TDEngine2 is a cross-platform game engine
Apache License 2.0
18 stars 4 forks source link

[Bug] Components of type StaticMeshContainer are incorrectly deserialized #88

Closed bnoazx005 closed 2 years ago

bnoazx005 commented 2 years ago

Bug report

Components of type StaticMeshContainer are incorrectly deserialized. Their sub-mesh's identifier field contains incorrect value which equals to "\n" instead of an empty string.

Environment

Win 10 x64 / Visual Studio 2022 / TDEngine2-v0.6.x / NVidia RTX 3070 Super

Steps to reproduce the issue

  1. Try to load some scene with some entity that StaticMeshContainer component is attached to

What's the expected result?

Empty sub-mesh should be parsed and recognized correctly. No errors happen during editing the entity

What's the actual result?

The mesh isn't displayed. When you try to edit the entity assert is raised in vector's implementation