Antoine.YVAN Posted May 26, 2020 Share Posted May 26, 2020 Hi ! I was working with materials when I ran into a bug with the getPath() function. I expect the getPath() function to give me the current material's path. Steps: Create a material. Set a path to the current material with setPath(const* char path) Print material->getPath() Expected : the good path What I get : I work on Unigine 2.10 and 2.9. Here is my code : Or am I using it wrong maybe ? Thanks, Antoine YVAN Link to comment
morbid Posted May 27, 2020 Share Posted May 27, 2020 Hello Antonie, It's a file system bug, unfortunately. There's a workaround: Unigine::Log::message("Path %s\n", Unigine::FileSystem::getVirtualPath(material->getFileGUID()).get()); We'll address this issue in the next version. Sorry for the inconvenience. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Antoine.YVAN Posted May 27, 2020 Author Share Posted May 27, 2020 Workaround is working as expected, thanks ! Link to comment
Recommended Posts