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

pull/145/merge
acgessler 2013-10-05 16:26:52 +02:00
parent 9d4f7c32e4
commit ad0b214656
1 changed files with 1 additions and 1 deletions

View File

@ -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);