mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
write out correct relative filenames
This commit is contained in:
parent
b2f4dab648
commit
d4cfaf2c30
@ -19,6 +19,7 @@
|
||||
#include "eggMakeFont.h"
|
||||
#include "rangeIterator.h"
|
||||
#include "palettizer.h"
|
||||
#include "filenameUnifier.h"
|
||||
#include "eggFile.h"
|
||||
#include "textureImage.h"
|
||||
#include "sourceTextureImage.h"
|
||||
@ -243,6 +244,12 @@ handle_args(ProgramBase::Args &args) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void EggMakeFont::
|
||||
run() {
|
||||
if (has_output_filename() && !get_output_filename().get_dirname().empty()) {
|
||||
FilenameUnifier::set_rel_dirname(get_output_filename().get_dirname());
|
||||
} else {
|
||||
FilenameUnifier::set_rel_dirname(".");
|
||||
}
|
||||
|
||||
_text_maker = new PNMTextMaker(_input_font_filename, _face_index);
|
||||
if (!_text_maker->is_valid()) {
|
||||
exit(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user