mesh cache names

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

mesh cache names

Post by B@z »

Hi
encountered a problem.
seems like the mesh cache saving the file name as it was called.

so lets say, i have a file in c:/myprog/data/0.b3d
first i call:
getMesh("data/0.b3d");

then lated i call
getMesh("c:/myprog/data/0.b3d")

then it loads it again. i think it should store the absolute path instead of the relative.

i encountered this problem when i tried to open a mesh by ("../characters/0/mesh.b3d"), because from default, my game tries to open it from the mesh folder.

not a big problem, i can open it with calling the getAbsolutePath before, but i think it should work in that way
Image
Image
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

Yeah, looking at the source code of getMesh, this could easily be fixed. getTexture in the driver actually makes all paths absolute when loading them and such, we should probably do the same for getMesh.
Post Reply