nem0 / OpenFBX

Lightweight open source FBX importer
MIT License
1.15k stars 135 forks source link

How to delete object from ofbx::load #67

Closed jdtec01 closed 3 years ago

jdtec01 commented 3 years ago

Hi, it's unclear how a user of the API is meant to clean-up the object returned from ofbx::load?

I would delete but the destructor is protected. Am I missing something?

Thanks

nem0 commented 3 years ago

Hi, just call IScene::destroy https://github.com/nem0/OpenFBX/blob/master/src/ofbx.h#L516