浏览代码

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

acgessler 12 年之前
父节点
当前提交
ad0b214656
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);