mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
search in current directory too
This commit is contained in:
parent
3978b8ecef
commit
ab35f28160
@ -73,7 +73,8 @@ DynamicTextFont(const Filename &font_filename, int face_index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Filename path(font_filename);
|
Filename path(font_filename);
|
||||||
if (!path.resolve_filename(get_model_path())) {
|
path.resolve_filename(get_model_path());
|
||||||
|
if (!path.exists()) {
|
||||||
text_cat.error()
|
text_cat.error()
|
||||||
<< "Unable to find font file " << font_filename << "\n";
|
<< "Unable to find font file " << font_filename << "\n";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user