Filename problem in LoadMesh and LoadAnimMesh
Archives Forums/Blitz3D Bug Reports/Filename problem in LoadMesh and LoadAnimMesh
| ||
Looks like in 1.93 filename parameter in LoadMesh and LoadAnimMesh is case sensitive. Run this: Graphics3D 640,480,0,2 SetBuffer BackBuffer() file$ = "test.b3d" ;file$ = Upper$(file$) mesh = LoadMesh (file$) If mesh Text 0,0,"ok" Else Text 0,0,"error" EndIf WaitKey and when i uncomment fourth line i get "error". In 1.91 I have always "ok". This only happen with LoadMesh and LoadAnimMesh. When I use LoadTexture, LoadSound, Load3dSound and LoadImage everything works. I tested this on my both machines - desktop (WindowsXP Pro SP2) and notebook (WindowsXP Home Ed SP2). |
| ||
Ive noticed that if the filename contains ANY uppercase it seems to cause a problem. i.e. File on disk is called "test.B3D" and you load LoadMesh(test.B3D") it still does not load. Quick fix is to loadMesh(lower("test.B3D")) - loads regardless of the filename on disk. |
| ||
Doh! Just hit this same bug. I'll use that solution. |
| ||
>OvineByDesign Thanks for solution. But bug is bug ;) |
| ||
Glad to see this got raised, personally I got so fed up with the update I went on a bender and I've only just sobered up. |
| ||
There's a 1.94 update that fixes this, available now. |