From ad0b2146562b28a6bea13e2a0511b314aabeb423 Mon Sep 17 00:00:00 2001 From: acgessler Date: Sat, 5 Oct 2013 16:26:52 +0200 Subject: [PATCH] Exporter: do not make any assumptions on previously run PP steps if the scene is a copy. --- code/Exporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Exporter.cpp b/code/Exporter.cpp index 0f7c8f6d5..306ed824a 100644 --- a/code/Exporter.cpp +++ b/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);