Skip to content

Commit

Permalink
Merge pull request #432 from KhronosGroup/fix/always-use-opencollada-…
Browse files Browse the repository at this point in the history
…ma-extension-2

Fix/always use opencollada ma extension 2
  • Loading branch information
RemiArnaud committed May 6, 2016
2 parents bc25cd9 + 36201ff commit b401054
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions COLLADAMaya/src/COLLADAMayaFileTranslator.cpp
Expand Up @@ -186,9 +186,6 @@
namespace COLLADAMaya
{

const String FileTranslator::ASCII_PATH_EXTENSION = ".ma";
const String FileTranslator::ASCII_PATH_EXTENSION_DEBUG = ".opencollada.ma";


/************************************************************************/
/* Constructor and Destructor of the DaeFileTranslator class */
Expand Down Expand Up @@ -390,20 +387,10 @@ namespace COLLADAMaya
clock_t startClock, endClock;
startClock = clock();

// TODO Ask the user where to save the maya file.
// MString command = "fileBrowserDialog -m 0 -fc \"importFromFile\" -ft \"mayaAscii\" -fl \"*.ma\" -an \"Save_import_as\" -om \"SaveAs\"";
// MString mayaAsciiFileNameM = MGlobal::executeCommandStringResult ( command );
// String mayaAsciiFileName ( mayaAsciiFileNameM.asChar () );
// MGlobal::displayInfo ( mayaAsciiFileName.c_str() );

// Set the imported file name and path.
// COLLADABU::URI mayaAsciiFileURI ( mayaAsciiFileName );
COLLADABU::URI mayaAsciiFileURI ( importFileName );
#ifdef NDEBUG
mayaAsciiFileURI.setPathExtension ( ASCII_PATH_EXTENSION );
#else
mayaAsciiFileURI.setPathExtension ( ASCII_PATH_EXTENSION_DEBUG );
#endif
COLLADABU::URI mayaAsciiFileURI ( importFileName );
mayaAsciiFileURI.setPathExtension ( ".opencollada.ma" );

String mayaAsciiFileName = mayaAsciiFileURI.getURIString ();
const char* cpMayaAsciiFileName = mayaAsciiFileName.c_str();

Expand Down Expand Up @@ -486,4 +473,4 @@ namespace COLLADAMaya
}


}// namespace COLLADA
}// namespace COLLADA

0 comments on commit b401054

Please sign in to comment.