diff --git a/code/XFileImporter.cpp b/code/XFileImporter.cpp index 025831b6e..af0f478d5 100644 --- a/code/XFileImporter.cpp +++ b/code/XFileImporter.cpp @@ -103,6 +103,10 @@ void XFileImporter::InternReadFile( const std::string& pFile, aiScene* pScene, I // and create the proper return structures out of it CreateDataRepresentationFromImport( pScene, parser.GetImportedData()); + + // if nothing came from it, report it as error + if( !pScene->mRootNode) + throw new ImportErrorException( "XFile is ill-formatted - no content imported."); } // ------------------------------------------------------------------------------------------------ @@ -136,7 +140,8 @@ void XFileImporter::CreateDataRepresentationFromImport( aiScene* pScene, const X } // convert the root node's transformation to OGL coords - ConvertToLHProcess::ConvertToOGL( pScene->mRootNode->mTransformation); + if( pScene->mRootNode) + ConvertToLHProcess::ConvertToOGL( pScene->mRootNode->mTransformation); // finally: create a dummy material if not material was imported if( pScene->mNumMaterials == 0) diff --git a/doc/datastructure.xml b/doc/datastructure.xml index 6328197a5..f07c16cec 100644 --- a/doc/datastructure.xml +++ b/doc/datastructure.xml @@ -1,41 +1,52 @@ - + - + - + - - - + + + - - - - + + + + - - + + - - + + + + + + + + + + + + - + + @@ -48,7 +59,7 @@ - + @@ -65,7 +76,7 @@ ... - + ... @@ -80,4 +91,10 @@ - \ No newline at end of file + + + + + + + \ No newline at end of file diff --git a/workspaces/vc8/assimp.vcproj b/workspaces/vc8/assimp.vcproj index 1800313a4..000a09da4 100644 --- a/workspaces/vc8/assimp.vcproj +++ b/workspaces/vc8/assimp.vcproj @@ -39,7 +39,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="../../include" - PreprocessorDefinitions="DEBUG, _SCL_SECURE_NO_WARNINGS, _CRT_SECURE_NO_WARNINGS" + PreprocessorDefinitions="DEBUG, _SCL_SECURE_NO_WARNINGS, _CRT_SECURE_NO_WARNINGS,WIN32" BasicRuntimeChecks="3" SmallerTypeCheck="true" RuntimeLibrary="1" @@ -103,7 +103,7 @@ EnableIntrinsicFunctions="true" FavorSizeOrSpeed="1" AdditionalIncludeDirectories="../../include" - PreprocessorDefinitions="NDEBUG, _SCL_SECURE_NO_WARNINGS, _CRT_SECURE_NO_WARNINGS" + PreprocessorDefinitions="NDEBUG, _SCL_SECURE_NO_WARNINGS, _CRT_SECURE_NO_WARNINGS,WIN32" StringPooling="true" BufferSecurityCheck="false" EnableEnhancedInstructionSet="2" @@ -165,7 +165,7 @@ EnableIntrinsicFunctions="true" FavorSizeOrSpeed="1" AdditionalIncludeDirectories="../../include" - PreprocessorDefinitions="NDEBUG, _SCL_SECURE_NO_WARNINGS, _CRT_SECURE_NO_WARNINGS" + PreprocessorDefinitions="NDEBUG, _SCL_SECURE_NO_WARNINGS, _CRT_SECURE_NO_WARNINGS,WIN32" StringPooling="true" BufferSecurityCheck="false" EnableEnhancedInstructionSet="2" @@ -234,7 +234,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="../../include" - PreprocessorDefinitions="DEBUG, _SCL_SECURE_NO_WARNINGS, _CRT_SECURE_NO_WARNINGS" + PreprocessorDefinitions="DEBUG, _SCL_SECURE_NO_WARNINGS, _CRT_SECURE_NO_WARNINGS,WIN32" BasicRuntimeChecks="3" SmallerTypeCheck="true" RuntimeLibrary="1"