vpenades / SharpGLTF

glTF reader and writer for .NET Standard
MIT License
454 stars 72 forks source link

[BUG] Extras data lost during load #216

Closed gentilinigm closed 5 months ago

gentilinigm commented 5 months ago

Describe the bug Any Extras data of the entities is lost during the load operation, resulting in null fields.

To Reproduce Import the attached model: gh216.zip

SharpGLTF.Schema2.ModelRoot.Load("test.gltf");

And check the 'Extras' property of the meshes / nodes.

The attached model is a very simple .gltf file with the following structure:

node
├── mesh (mesh1)
└── node (br1)
    ├── mesh (meshbr1)
    └── node
        └── mesh (meshbr2)

Where the value inside brackets is the relative Extras data.

please complete the following information:

vpenades commented 5 months ago

looking into it...

vpenades commented 5 months ago

Are you sure the extras are not imported? I can see the extras being correctly imported:

imagen

gentilinigm commented 5 months ago

I was checking VS watches and they were all null, but accessing the properties works and they are populated. Its an error on my end, very sorry for wasting your time.

You can close/delete the issue. Thank you