don't initialize twice

This commit is contained in:
David Rose 2004-05-04 19:53:43 +00:00
parent 0aafc622ce
commit 5d065d2d77

View File

@ -149,11 +149,13 @@ filter_filename(const string &source) {
bool MayaCopy::
copy_maya_file(const Filename &source, const Filename &dest,
CVSSourceDirectory *dir) {
if (_maya.is_null()) {
_maya = MayaApi::open_api(_program_name);
if (!_maya->is_valid()) {
nout << "Unable to initialize Maya.\n";
exit(1);
}
}
if (!_maya->read(source)) {
maya_cat.error()