Browse Source

Exporter: do not make any assumptions on previously run PP steps if the scene is a copy.

acgessler 12 years ago
parent
commit
ad0b214656
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/Exporter.cpp

+ 1 - 1
code/Exporter.cpp

@@ -289,7 +289,7 @@ aiReturn Exporter :: Export( const aiScene* pScene, const char* pFormatId, const
 				const unsigned int nonIdempotentSteps = aiProcess_FlipWindingOrder | aiProcess_FlipUVs | aiProcess_MakeLeftHanded;
 
 				// Erase all pp steps that were already applied to this scene
-				const unsigned int pp = (exp.mEnforcePP | pPreprocessing) & ~(priv 
+				const unsigned int pp = (exp.mEnforcePP | pPreprocessing) & ~(priv && !priv->mIsCopy
 					? (priv->mPPStepsApplied & ~nonIdempotentSteps)
 					: 0u);