Fixed bug in the AC loader causing lines to load incorrectly. Seems to work now.
Added some more essential includes to AssimpPCH.hAdded support for line and point meshes to most steps - I did nto yet adapt all unit tests, so meshes with mixed primitive types are not absolutely safe at the moment. Added camera and light support to the PretransformVert step. Fixed some small inaccuracies and fixed a bug reported by Mark Sibly causing all transformations to be invalid. However the step is nto yet completely correct, there are still some small artifacts. Updated light and camera data structures, added temporary validation code for the Renamed AI_SCENE_FLAGS_ANIM_SKELETON_ONLY to a more generic AI_SCENE_FLAGS_INCOMPLETE flag. Fixed bug in the OFF loader causing meshes with polygons to crash Added line support to the DXF loader - seems to fail for the moment cause of SortByPType. Added support for lights and cameras to NFF, implemented another NFF format subtype (file starts with 'nff'). Implemented NFF 'tpp' chunk and a corresponding texture extension. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@185 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -145,10 +145,22 @@ protected:
|
||||
* @param pTexture Input texture
|
||||
*/
|
||||
void Validate( const aiTexture* pTexture);
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
/** Validates a light source
|
||||
* @param pLight Input light
|
||||
*/
|
||||
void Validate( const aiLight* pLight);
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
/** Validates a camera
|
||||
* @param pCamera Input camera
|
||||
*/
|
||||
void Validate( const aiCamera* pCamera);
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
/** Validates a bone animation channel
|
||||
* @param pAnimation Input animation
|
||||
* @param pAnimation Animation channel.
|
||||
* @param pBoneAnim Input bone animation
|
||||
*/
|
||||
void Validate( const aiAnimation* pAnimation,
|
||||
@@ -168,9 +180,28 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
// template to validate one of the aiScene::mXXX arrays
|
||||
template <typename T>
|
||||
inline void DoValidation(T** array, unsigned int size,
|
||||
const char* firstName, const char* secondName);
|
||||
|
||||
// extended version: checks whethr T::mName occurs twice
|
||||
template <typename T>
|
||||
inline void DoValidationEx(T** array, unsigned int size,
|
||||
const char* firstName, const char* secondName);
|
||||
|
||||
// extension to the first template which does also search
|
||||
// the nodegraph for an item with the same name
|
||||
template <typename T>
|
||||
inline void DoValidationWithNameCheck(T** array, unsigned int size,
|
||||
const char* firstName, const char* secondName);
|
||||
|
||||
aiScene* mScene;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
} // end of namespace Assimp
|
||||
|
||||
#endif // AI_VALIDATEPROCESS_H_INC
|
||||
|
||||
Reference in New Issue
Block a user