diff --git a/src/ofbx.h b/src/ofbx.h index c0bd9b1..5c50bf8 100644 --- a/src/ofbx.h +++ b/src/ofbx.h @@ -725,3 +725,20 @@ i64 secondsToFbxTime(double value); } // namespace ofbx + +#ifdef OFBX_DEFAULT_DELETER +#include + +template <> struct ::std::default_delete +{ + default_delete() = default; + template constexpr default_delete(default_delete) noexcept {} + void operator()(ofbx::IScene* scene) const noexcept + { + if (scene) + { + scene->destroy(); + } + } +}; +#endif