From 93b74061387075909d1b4d29b0e5b2924e06f7d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 22 Apr 2021 02:18:44 +0200 Subject: [PATCH] fbx: Fix include for zlib that broke unbundling It's possible to link against system zlib on Linux, so we should use system paths. --- modules/fbx/SCsub | 3 +++ modules/fbx/fbx_parser/FBXParser.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/fbx/SCsub b/modules/fbx/SCsub index 84220a66fa4..0311fddfee6 100644 --- a/modules/fbx/SCsub +++ b/modules/fbx/SCsub @@ -8,6 +8,9 @@ env_fbx = env_modules.Clone() # Make includes relative to the folder path specified here so our includes are clean env_fbx.Prepend(CPPPATH=["#modules/fbx/"]) +if env["builtin_zlib"]: + env_fbx.Prepend(CPPPATH=["#thirdparty/zlib/"]) + # Godot's own source files env_fbx.add_source_files(env.modules_sources, "tools/*.cpp") env_fbx.add_source_files(env.modules_sources, "data/*.cpp") diff --git a/modules/fbx/fbx_parser/FBXParser.cpp b/modules/fbx/fbx_parser/FBXParser.cpp index 82d532e0b87..2a76c3f67c6 100644 --- a/modules/fbx/fbx_parser/FBXParser.cpp +++ b/modules/fbx/fbx_parser/FBXParser.cpp @@ -74,8 +74,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * @brief Implementation of the FBX parser and the rudimentary DOM that we use */ -#include "thirdparty/zlib/zlib.h" #include /* strtol */ +#include #include "ByteSwapper.h" #include "FBXParseTools.h"