From a6e733aa97c2193824973698d9c03194b43dda01 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 4 May 2004 19:54:47 +0000 Subject: [PATCH] revert silly checkin --- pandatool/src/mayaprogs/mayaCopy.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pandatool/src/mayaprogs/mayaCopy.cxx b/pandatool/src/mayaprogs/mayaCopy.cxx index dd4d29a010..677ea9f8a0 100644 --- a/pandatool/src/mayaprogs/mayaCopy.cxx +++ b/pandatool/src/mayaprogs/mayaCopy.cxx @@ -71,6 +71,12 @@ MayaCopy() { //////////////////////////////////////////////////////////////////// void MayaCopy:: run() { + _maya = MayaApi::open_api(_program_name); + if (!_maya->is_valid()) { + nout << "Unable to initialize Maya.\n"; + exit(1); + } + SourceFiles::iterator fi; for (fi = _source_files.begin(); fi != _source_files.end(); ++fi) { ExtraData ed; @@ -149,14 +155,6 @@ 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() << "Unable to read " << source << "\n";