diff --git a/code/AssimpPCH.h b/code/AssimpPCH.h index 46f1442c3..3e19427c9 100644 --- a/code/AssimpPCH.h +++ b/code/AssimpPCH.h @@ -94,6 +94,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // ******************************************************************* // internal headers that are nearly always required // ******************************************************************* +#include "BaseImporter.h" #include "MaterialSystem.h" #include "StringComparison.h" #include "StreamReader.h" diff --git a/code/DXFLoader.h b/code/DXFLoader.h index bcfcd297e..996ddd4b4 100644 --- a/code/DXFLoader.h +++ b/code/DXFLoader.h @@ -42,6 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef AI_DXFLOADER_H_INCLUDED #define AI_DXFLOADER_H_INCLUDED +#include "BaseImporter.h" namespace Assimp { diff --git a/code/IRRMeshLoader.h b/code/IRRMeshLoader.h index 99e330c5b..332dc9190 100644 --- a/code/IRRMeshLoader.h +++ b/code/IRRMeshLoader.h @@ -44,6 +44,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define AI_IRRMESHLOADER_H_INCLUDED #include "./irrXML/irrXMLWrapper.h" +#include "BaseImporter.h" namespace Assimp { diff --git a/code/SkeletonMeshBuilder.cpp b/code/SkeletonMeshBuilder.cpp index 87473e287..ca63668e2 100644 --- a/code/SkeletonMeshBuilder.cpp +++ b/code/SkeletonMeshBuilder.cpp @@ -101,6 +101,7 @@ void SkeletonMeshBuilder::CreateGeometry( const aiNode* pNode) aiVector3D front = (up ^ orth).Normalize(); aiVector3D side = (front ^ up).Normalize(); + unsigned int localVertexStart = mVertices.size(); mVertices.push_back( -front * distanceToChild * 0.1f); mVertices.push_back( childpos); mVertices.push_back( -side * distanceToChild * 0.1f); @@ -114,7 +115,6 @@ void SkeletonMeshBuilder::CreateGeometry( const aiNode* pNode) mVertices.push_back( childpos); mVertices.push_back( -front * distanceToChild * 0.1f); - unsigned localVertexStart = vertexStartIndex + a * 12; mFaces.push_back( Face( localVertexStart + 0, localVertexStart + 1, localVertexStart + 2)); mFaces.push_back( Face( localVertexStart + 3, localVertexStart + 4, localVertexStart + 5)); mFaces.push_back( Face( localVertexStart + 6, localVertexStart + 7, localVertexStart + 8)); diff --git a/include/assimp.hpp b/include/assimp.hpp index e4331fcb6..bb23b2aac 100644 --- a/include/assimp.hpp +++ b/include/assimp.hpp @@ -65,15 +65,11 @@ namespace Assimp class SharedPostProcessInfo; } -// internal ASSIMP headers - for plugin development -#include "./../code/BaseImporter.h" -#include "./../code/BaseProcess.h" - #define AI_PROPERTY_WAS_NOT_EXISTING 0xffffffff struct aiScene; struct aiFileIO; -extern "C" ASSIMP_API const aiScene* aiImportFileEx( const char*, unsigned int, aiFileIO*); +extern "C" const aiScene* aiImportFileEx( const char*, unsigned int, aiFileIO*); namespace Assimp {