summaryrefslogtreecommitdiff
path: root/thirdparty/assimp/code/PostProcessing/ScaleProcess.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-01 22:14:17 +0200
committerGitHub <noreply@github.com>2019-09-01 22:14:17 +0200
commit7dceba3afcbfde4c4b5d5549c0c907de87b7f421 (patch)
treea796d880350bd1b6e3f6b95223f8afb1b1e2cd3d /thirdparty/assimp/code/PostProcessing/ScaleProcess.h
parent62c0185cb3c2c808c78e9107333a3c4bdb6dadfd (diff)
parentad214c03560d721d9b8bbff03835fc7fa4884943 (diff)
Merge pull request #31587 from RevoluPowered/feature/fbx-importer
FBX Importer
Diffstat (limited to 'thirdparty/assimp/code/PostProcessing/ScaleProcess.h')
-rw-r--r--thirdparty/assimp/code/PostProcessing/ScaleProcess.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/thirdparty/assimp/code/PostProcessing/ScaleProcess.h b/thirdparty/assimp/code/PostProcessing/ScaleProcess.h
index 2567378759..468a216736 100644
--- a/thirdparty/assimp/code/PostProcessing/ScaleProcess.h
+++ b/thirdparty/assimp/code/PostProcessing/ScaleProcess.h
@@ -39,7 +39,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
----------------------------------------------------------------------
*/
-#pragma once
+#ifndef SCALE_PROCESS_H_
+#define SCALE_PROCESS_H_
#include "Common/BaseProcess.h"
@@ -53,6 +54,11 @@ namespace Assimp {
// ---------------------------------------------------------------------------
/** ScaleProcess: Class to rescale the whole model.
+ * Now rescales animations, bones, and blend shapes properly.
+ * Please note this will not write to 'scale' transform it will rewrite mesh
+ * and matrixes so that your scale values
+ * from your model package are preserved, so this is completely intentional
+ * bugs should be reported as soon as they are found.
*/
class ASSIMP_API ScaleProcess : public BaseProcess {
public:
@@ -78,7 +84,7 @@ public:
virtual void Execute( aiScene* pScene );
private:
- void traverseNodes( aiNode *currentNode );
+ void traverseNodes( aiNode *currentNode, unsigned int nested_node_id = 0 );
void applyScaling( aiNode *currentNode );
private:
@@ -86,3 +92,6 @@ private:
};
} // Namespace Assimp
+
+
+#endif // SCALE_PROCESS_H_ \ No newline at end of file