mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
handle directory names for textures
This commit is contained in:
parent
17e060966e
commit
50a339320c
@ -84,6 +84,7 @@ run() {
|
|||||||
|
|
||||||
CVSSourceDirectory *dest = import(*fi, &ed, _model_dir);
|
CVSSourceDirectory *dest = import(*fi, &ed, _model_dir);
|
||||||
if (dest == (CVSSourceDirectory *)NULL) {
|
if (dest == (CVSSourceDirectory *)NULL) {
|
||||||
|
nout << "\nUnable to copy, aborting!\n\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -162,9 +163,14 @@ copy_maya_file(const Filename &source, const Filename &dest,
|
|||||||
if (shader->_has_texture) {
|
if (shader->_has_texture) {
|
||||||
Filename texture_filename =
|
Filename texture_filename =
|
||||||
_path_replace->convert_path(shader->_texture);
|
_path_replace->convert_path(shader->_texture);
|
||||||
|
cerr << "texture " << shader->_name << " is " << shader->_texture << "\n"
|
||||||
|
<< "filename is " << texture_filename << "\n";
|
||||||
if (!texture_filename.exists()) {
|
if (!texture_filename.exists()) {
|
||||||
nout << "*** Warning: texture " << texture_filename
|
nout << "*** Warning: texture " << texture_filename
|
||||||
<< " does not exist.\n";
|
<< " does not exist.\n";
|
||||||
|
} else if (!texture_filename.is_regular_file()) {
|
||||||
|
nout << "*** Warning: texture " << texture_filename
|
||||||
|
<< " is not a regular file.\n";
|
||||||
} else {
|
} else {
|
||||||
ExtraData ed;
|
ExtraData ed;
|
||||||
ed._type = FT_texture;
|
ed._type = FT_texture;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user