mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
Better handling of -omittex:
-- now don't even try to load the shaders, in addition to not copying the textures
This commit is contained in:
parent
5b7c19ee73
commit
f967af05e2
@ -268,6 +268,7 @@ copy_maya_file(const Filename &source, const Filename &dest,
|
||||
_curr_idx++;
|
||||
}
|
||||
|
||||
if (!_omit_tex) {
|
||||
// Get all the shaders so we can determine the set of textures.
|
||||
_shaders.clear();
|
||||
collect_shaders();
|
||||
@ -280,6 +281,7 @@ copy_maya_file(const Filename &source, const Filename &dest,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Now write out the Maya file.
|
||||
if (!_maya->write(dest)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user