From 1c78f1be0366a8df2b231d341dcf974a7a22efc6 Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Mon, 10 Oct 2016 17:58:06 +0200 Subject: [PATCH] Fixed: unzip.h was still included even if the D3MF importer is disabled --- code/D3MFImporter.cpp | 8 ++++---- code/D3MFOpcPackage.cpp | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/code/D3MFImporter.cpp b/code/D3MFImporter.cpp index 045138be1..32b87003a 100644 --- a/code/D3MFImporter.cpp +++ b/code/D3MFImporter.cpp @@ -44,8 +44,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include -#include -#include "irrXMLWrapper.h" #include "StringComparison.h" #include "StringUtils.h" @@ -61,10 +59,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include -#include "D3MFOpcPackage.h" - #ifndef ASSIMP_BUILD_NO_3MF_IMPORTER +#include "D3MFOpcPackage.h" +#include +#include "irrXMLWrapper.h" + namespace Assimp { namespace D3MF { diff --git a/code/D3MFOpcPackage.cpp b/code/D3MFOpcPackage.cpp index f01ca7e0f..2e63a346e 100644 --- a/code/D3MFOpcPackage.cpp +++ b/code/D3MFOpcPackage.cpp @@ -42,7 +42,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "D3MFOpcPackage.h" #include "Exceptional.h" -#include #include #include #include @@ -57,6 +56,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef ASSIMP_BUILD_NO_3MF_IMPORTER +#include + namespace Assimp { namespace D3MF {