summaryrefslogtreecommitdiff
path: root/modules/fbx/SCsub
diff options
context:
space:
mode:
authorGordon MacPherson <gordon@gordonite.tech>2020-12-22 22:29:48 +0000
committerGordon MacPherson <gordon@gordonite.tech>2020-12-23 00:45:03 +0000
commit6607fc7da90d1e17f6bb952b8325d02bc593cccc (patch)
tree837d17d309b01304e3c5ee9e641c38e9645bb120 /modules/fbx/SCsub
parenta003ff0cf2a729edf3e08922ca5341ab8acd05c9 (diff)
Port FBX module from commit 68013d23932688e57b489600f4517dd280edc464
Ports FBX module from 3.2 branch to 4.0 This is the only time the plugin will be updated from 3.2 and marks the final time we do this, from now on we will backport FBX to 3.2 with fixes. Changelog: - fixed crash importing files with buggy format (because of bad newlines in ASCII data, this is yet to be fixed fully) - fixed const correctness with C++/C version change - rewrote material handling to be simpler and better - ports from 3.2 to 4.0 the fbx importer
Diffstat (limited to 'modules/fbx/SCsub')
-rw-r--r--modules/fbx/SCsub15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/fbx/SCsub b/modules/fbx/SCsub
new file mode 100644
index 0000000000..84220a66fa
--- /dev/null
+++ b/modules/fbx/SCsub
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+Import("env")
+Import("env_modules")
+
+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/"])
+
+# 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")
+env_fbx.add_source_files(env.modules_sources, "fbx_parser/*.cpp")
+env_fbx.add_source_files(env.modules_sources, "*.cpp")