- fbx: skeleton for DOM -> aiScene converter.

This commit is contained in:
Alexander Gessler
2012-06-28 20:02:09 +02:00
parent e945998fc8
commit d7270aa278
4 changed files with 208 additions and 2 deletions
+6 -2
View File
@@ -45,16 +45,17 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ASSIMP_BUILD_NO_FBX_IMPORTER
#include <exception>
#include <iterator>
#include <boost/tuple/tuple.hpp>
#include "FBXImporter.h"
#include "FBXTokenizer.h"
#include "FBXParser.h"
#include "FBXUtil.h"
#include "FBXDocument.h"
#include "FBXConverter.h"
#include "StreamReader.h"
#include "MemoryIOWrapper.h"
@@ -159,8 +160,11 @@ void FBXImporter::InternReadFile( const std::string& pFile,
// take the raw parse-tree and convert it to a FBX DOM
Document doc(parser,settings);
// convert the FBX DOM to aiScene
ConvertToAssimpScene(pScene,doc);
}
catch(...) {
catch(std::exception&) {
std::for_each(tokens.begin(),tokens.end(),Util::delete_fun<Token>());
throw;
}