mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
cocoa: use resolved filename to load cursor image (thanks treamous)
This commit is contained in:
parent
e13e9851f2
commit
2b632c8e20
@ -1351,7 +1351,7 @@ load_image_data(const Filename &filename) {
|
|||||||
cocoadisplay_cat.info()
|
cocoadisplay_cat.info()
|
||||||
<< "Loading NSImage from file " << resolved << "\n";
|
<< "Loading NSImage from file " << resolved << "\n";
|
||||||
|
|
||||||
PT(VirtualFile) vfile = vfs->get_file(filename);
|
PT(VirtualFile) vfile = vfs->get_file(resolved);
|
||||||
if (vfile == NULL) {
|
if (vfile == NULL) {
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user