Skip to content

Commit

Permalink
fbx: Fix include for zlib that broke unbundling
Browse files Browse the repository at this point in the history
It's possible to link against system zlib on Linux, so we should use system paths.
  • Loading branch information
akien-mga committed Apr 22, 2021
1 parent f6d5b2f commit 93b7406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/fbx/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion modules/fbx/fbx_parser/FBXParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdlib.h> /* strtol */
#include <zlib.h>

#include "ByteSwapper.h"
#include "FBXParseTools.h"
Expand Down

0 comments on commit 93b7406

Please sign in to comment.