the importer should auto-delete the scene? #6406
BrannonKing
started this conversation in
General
Replies: 1 comment
-
|
The intermediate scene lifetime is managed by its importer. So if you want to avoid releasing the scene automatically, you can put your importer instance onto the heap and manage its lifetime by yourself. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure that the importer should delete the scene object returned from the import. It does that at present (via delete pimpl->mScene). However, why would you assume that the importer instances would outlive the scene instance? We also have the aiFreeScene method. Assuming that sets it to null, maybe the importer delete should at least check for null on that?
Beta Was this translation helpful? Give feedback.
All reactions