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