Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aiString length not updated in the EmbedTextures postprocess task #4108

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

davidepi
Copy link
Contributor

@davidepi davidepi commented Oct 2, 2021

aiString length was not updated when the texture path was replaced with the embedded path (i.e. *0) after performing the EmbedTextures postprocess task.

This created all sort of problems when performing string manipulation using the aiString::length field instead of interpreting aiString::data as c-string (think of applications using UTF8 strings).

I also wrote a small unit test for this change, but decided against pushing it because I don't know in which file to put it.
Let me know if I should add it to the pr.

@kimkulling kimkulling merged commit babf3b8 into assimp:master Oct 4, 2021
@kimkulling
Copy link
Member

Merged, thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants