mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -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::
|
bool MayaCopy::
|
||||||
copy_maya_file(const Filename &source, const Filename &dest,
|
copy_maya_file(const Filename &source, const Filename &dest,
|
||||||
CVSSourceDirectory *dir) {
|
CVSSourceDirectory *dir) {
|
||||||
_maya = MayaApi::open_api(_program_name);
|
if (_maya.is_null()) {
|
||||||
if (!_maya->is_valid()) {
|
_maya = MayaApi::open_api(_program_name);
|
||||||
nout << "Unable to initialize Maya.\n";
|
if (!_maya->is_valid()) {
|
||||||
exit(1);
|
nout << "Unable to initialize Maya.\n";
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_maya->read(source)) {
|
if (!_maya->read(source)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user