mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
defer initialization
This commit is contained in:
parent
63d2fad3dd
commit
06efd9c0e8
@ -71,12 +71,6 @@ MayaCopy() {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void MayaCopy::
|
void MayaCopy::
|
||||||
run() {
|
run() {
|
||||||
_maya = MayaApi::open_api(_program_name);
|
|
||||||
if (!_maya->is_valid()) {
|
|
||||||
nout << "Unable to initialize Maya.\n";
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
SourceFiles::iterator fi;
|
SourceFiles::iterator fi;
|
||||||
for (fi = _source_files.begin(); fi != _source_files.end(); ++fi) {
|
for (fi = _source_files.begin(); fi != _source_files.end(); ++fi) {
|
||||||
ExtraData ed;
|
ExtraData ed;
|
||||||
@ -155,6 +149,13 @@ 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_valid()) {
|
||||||
|
nout << "Unable to initialize Maya.\n";
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
cerr << "Maya read\n";
|
||||||
if (!_maya->read(source)) {
|
if (!_maya->read(source)) {
|
||||||
maya_cat.error()
|
maya_cat.error()
|
||||||
<< "Unable to read " << source << "\n";
|
<< "Unable to read " << source << "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user