aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/LowLevelCloth/src/SwFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'PhysX_3.4/Source/LowLevelCloth/src/SwFactory.cpp')
-rw-r--r--PhysX_3.4/Source/LowLevelCloth/src/SwFactory.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/PhysX_3.4/Source/LowLevelCloth/src/SwFactory.cpp b/PhysX_3.4/Source/LowLevelCloth/src/SwFactory.cpp
index fa0b5864..3a97aa74 100644
--- a/PhysX_3.4/Source/LowLevelCloth/src/SwFactory.cpp
+++ b/PhysX_3.4/Source/LowLevelCloth/src/SwFactory.cpp
@@ -62,6 +62,11 @@ cloth::Fabric* cloth::SwFactory::createFabric(uint32_t numParticles, Range<const
getNextFabricId());
}
+#if PX_SUPPORT_EXTERN_TEMPLATE
+//explicit template instantiation declaration
+extern template class cloth::ClothImpl<cloth::SwCloth>;
+#endif
+
cloth::Cloth* cloth::SwFactory::createCloth(Range<const PxVec4> particles, Fabric& fabric)
{
return new SwClothImpl(*this, fabric, particles);