mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
don't initialize twice
This commit is contained in:
parent
0aafc622ce
commit
5d065d2d77
@ -149,10 +149,12 @@ filter_filename(const string &source) {
|
||||
bool MayaCopy::
|
||||
copy_maya_file(const Filename &source, const Filename &dest,
|
||||
CVSSourceDirectory *dir) {
|
||||
_maya = MayaApi::open_api(_program_name);
|
||||
if (!_maya->is_valid()) {
|
||||
nout << "Unable to initialize Maya.\n";
|
||||
exit(1);
|
||||
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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user