aboutsummaryrefslogtreecommitdiff
path: root/tools/ApexImporter/src
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2019-05-03 00:25:46 -0700
committerBryan Galdrikian <[email protected]>2019-05-03 00:25:46 -0700
commit74b64a27f8e07b1b0b47b809b1a060518fa11a97 (patch)
tree34cca01711be56892c149706f02ba7358d87ec54 /tools/ApexImporter/src
parentFixing chunk reorder bug in BlastTool, when importing a prefractured mesh (diff)
downloadblast-1.1.5_pre1.tar.xz
blast-1.1.5_pre1.zip
Blast SDK 1.1.5 prerelease #1v1.1.5_pre1
Diffstat (limited to 'tools/ApexImporter/src')
-rwxr-xr-xtools/ApexImporter/src/ApexDestructibleObjExporter.h1
-rwxr-xr-xtools/ApexImporter/src/Main.cpp8
2 files changed, 8 insertions, 1 deletions
diff --git a/tools/ApexImporter/src/ApexDestructibleObjExporter.h b/tools/ApexImporter/src/ApexDestructibleObjExporter.h
index c4cf859..5c0ed64 100755
--- a/tools/ApexImporter/src/ApexDestructibleObjExporter.h
+++ b/tools/ApexImporter/src/ApexDestructibleObjExporter.h
@@ -31,7 +31,6 @@
#include <string>
#include <vector>
-#include <NvBlastExtAuthoringCollisionBuilder.h>
#include <NvBlastExtApexImportTool.h>
diff --git a/tools/ApexImporter/src/Main.cpp b/tools/ApexImporter/src/Main.cpp
index c7b5897..3b5a2e0 100755
--- a/tools/ApexImporter/src/Main.cpp
+++ b/tools/ApexImporter/src/Main.cpp
@@ -225,6 +225,14 @@ void run(const std::string& inFilepath, const std::string& outDir, const std::st
}
}
+ for (auto& hv : hulls)
+ {
+ for (auto h : hv)
+ {
+ blast.getCollisionBuilder()->releaseCollisionHull(h);
+ }
+ }
+
NVBLAST_FREE(llAsset);
}