When I open a file with the "OpenFileDialog" the working directory is changed. This way the OpenFileDialog can "memorize" the last opened directory. But all others path are wrong.
If I Open a file and then I try to load some kind of assets the engine will crash because the assets will be not found due to changed working directory. And pointer to related resources will be null.
how to fix:
1) should at least warn in software documentation
2) maybe add a "secondary working directory" to FileSytem wich can be used by users and is used by OpenFileDialog
[bug] OpenFileDialog: unwanted behaviour
[bug] OpenFileDialog: unwanted behaviour
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Re: [bug] OpenFileDialog: unwanted behaviour
Yeah, I guess it should be documented (you're not the first running into this). My usual workaround is remembering old path and setting it back after closing. Default behavior should not change (always bad, and this way is also fine when documented), but having that optional would be good. I can add the documentation (got a bunch of other documentation fixes waiting anyway), fixing the dialog will have to wait (I have more than half a dozen change-wishes for this dialog already - it needs more or less a complete rework imho).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: [bug] OpenFileDialog: unwanted behaviour
yes i fixed in my project in the same way. (storing a secondary path elsewhere).
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me