jkvargas / russimp

Assimp bindings for Rust
Other
84 stars 27 forks source link

Bugfixes and minor API changes #39

Open sutajo opened 1 year ago

sutajo commented 1 year ago

Hi!

I fixed some issues:

Minor API changes:

Let me know what you think :) I would be happy to contribute!

jkvargas commented 1 year ago

Hey brother, thanks so much for the contribution. I would like to ask you some things.

Can you, please, split the improvements and the bug fixes into 2 different pull requests? The bug fixes specially if they don't break the user space then you can bump the minor version of the package.

For the bugs, can you please add tests to cover the issues? If I may give more info regarding that, can you please write a tests that you know it will fail, make it fail and then proceed to fix the code to make those tests pass?

Lets try this and I will review your PR again?

Quick one about the bitflags, adding that fixes any issues you mentioned?

sutajo commented 1 year ago

Sure, I will split up the PR.

The metadata parsing errors were not detected because the tests had errors too, for example a string property was expected to be a float array. I fixed the tests so that they expect the correct values. For the memory leak issue I'm not sure if I can write a test.

Changing PostProcess to bitflags did not fix any issues, but I think it is more convenient because:

jkvargas commented 1 year ago

Thanks for the comprehension. For the memory leak it is ok to not have a test if you don't find a way to cover it =) But other issues would be nice to be covered with new tests, or get existing tests fixed in case those are supposed to cover the issue. A version with bitflags is welcome but that has to be on a second PR bumping the major version.