SharpGLTF
SharpGLTF copied to clipboard
fixbug: save obj file streamwriter has no close
Thanks for your bugfix, but in its current state I cannot merge it, because it does not follow good programming practices.
streams need to be closed/disposed by the same function that opened them to ensure the stream is properly handled.
So the right way to do it is to expand the lambda funciont and dispose the stream after having called the _GetGeometryContent method.
@vpenades yes, you are wright, but the bug need fix, otherwise the *.obj file is incomplete
I'll give a look at the wavefront and figure out another way of fixing this
I've been able to fix it on my end, so this pull request is no longer neccesary.
Thanks for hilighting the issue.