vpenades / SharpGLTF

glTF reader and writer for .NET Standard
MIT License
470 stars 75 forks source link

is invalid or does not exist. (Parameter 'dirPath') #32

Closed bertt closed 4 years ago

bertt commented 4 years ago

When upgrading from Alpha-0014 to Alpha-0015 I see a new error on saving GLB with ModelRoot.SaveGLB: 'is invalid or does not exist. (Parameter 'dirPath')' The model contains a ChannelImage I think it could be related.

Tried to add the image using a fully specified path (instead of relative path), but same error occurs.

vpenades commented 4 years ago

I did a fast search and most "dirPath" uses are related to using Guard.DirectoryPathMustExist , which is a requirement... I assume you've already checked the directory exists.

Could you give me a bit more context?

bertt commented 4 years ago

ok I'll try to create a small repro, its in a modified version of SolidMeshUtils.CreateTerrainMesh

bertt commented 4 years ago

Couldn't reproduce it quickly in almost identical code... Anyway, alpha-0015 solved another problem so good work :-)