update:
- update version info for 3.1 - aiGetVersionRevision will now return the git tag. Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>pull/267/head
parent
8255d67a95
commit
825a61fbc0
|
@ -4,6 +4,9 @@
|
|||
#include "AssimpPCH.h"
|
||||
#include "./../include/assimp/version.h"
|
||||
|
||||
static const unsigned int MajorVersion = 3;
|
||||
static const unsigned int MinorVersion = 1;
|
||||
|
||||
// --------------------------------------------------------------------------------
|
||||
// Legal information string - dont't remove this.
|
||||
static const char* LEGAL_INFORMATION =
|
||||
|
@ -25,13 +28,13 @@ ASSIMP_API const char* aiGetLegalString () {
|
|||
// ------------------------------------------------------------------------------------------------
|
||||
// Get Assimp minor version
|
||||
ASSIMP_API unsigned int aiGetVersionMinor () {
|
||||
return 0;
|
||||
return MinorVersion;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// Get Assimp major version
|
||||
ASSIMP_API unsigned int aiGetVersionMajor () {
|
||||
return 3;
|
||||
return MajorVersion;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
@ -65,11 +68,11 @@ ASSIMP_API unsigned int aiGetCompileFlags () {
|
|||
// ------------------------------------------------------------------------------------------------
|
||||
ASSIMP_API unsigned int aiGetVersionRevision ()
|
||||
{
|
||||
return SVNRevision;
|
||||
return GitVersion;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
ASSIMP_API aiScene::aiScene()
|
||||
ASSIMP_API aiScene::aiScene()
|
||||
: mFlags(0)
|
||||
, mRootNode(NULL)
|
||||
, mNumMeshes(0)
|
||||
|
@ -83,7 +86,7 @@ ASSIMP_API aiScene::aiScene()
|
|||
, mNumLights(0)
|
||||
, mLights(NULL)
|
||||
, mNumCameras(0)
|
||||
, mCameras(NULL)
|
||||
, mCameras(NULL)
|
||||
, mPrivate(new Assimp::ScenePrivateData())
|
||||
{
|
||||
}
|
||||
|
|
|
@ -74,11 +74,10 @@ ASSIMP_API unsigned int aiGetVersionMajor (void);
|
|||
// ---------------------------------------------------------------------------
|
||||
/** @brief Returns the repository revision of the Assimp runtime.
|
||||
* @return SVN Repository revision number of the Assimp runtime the
|
||||
* application was linked/built against
|
||||
* application was linked/built against.
|
||||
*/
|
||||
ASSIMP_API unsigned int aiGetVersionRevision (void);
|
||||
|
||||
|
||||
//! Assimp was compiled as a shared object (Windows: DLL)
|
||||
#define ASSIMP_CFLAGS_SHARED 0x1
|
||||
//! Assimp was compiled against STLport
|
||||
|
|
|
@ -1 +1,6 @@
|
|||
#define SVNRevision 1270
|
||||
#ifndef ASSIMP_REVISION_H_INC
|
||||
#define ASSIMP_REVISION_H_INC
|
||||
|
||||
#define GitVersion 0xA0bA3A8;
|
||||
|
||||
#endif // ASSIMP_REVISION_H_INC
|
||||
|
|
|
@ -42,8 +42,8 @@ IDI_ASSIMP_VIEW ICON "../shared/assimp_tools_icon.ico
|
|||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,1,SVNRevision,0
|
||||
PRODUCTVERSION 1,1,SVNRevision,1
|
||||
FILEVERSION 1, 1, GitVersion, 0
|
||||
PRODUCTVERSION 1, 1, GitVersion, 1
|
||||
FILEFLAGSMASK 0x17L
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
|
|
Loading…
Reference in New Issue