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:
Chris Brunner 2011-11-16 00:20:10 +00:00
parent 5b7c19ee73
commit f967af05e2

View File

@ -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)) {