fix: allow destroying instances independently of owner

This commit is contained in:
Nick Fisher
2025-01-02 16:46:44 +08:00
parent 8e0ba8ac4e
commit 3e181b6aff
13 changed files with 141 additions and 91 deletions

View File

@@ -1,7 +1,7 @@
#include "scene/GltfSceneAssetInstance.hpp"
#include "gltfio/FilamentInstance.h"
#include "Log.hpp"
#include "scene/GltfSceneAsset.hpp"
namespace thermion
{
@@ -10,5 +10,9 @@ namespace thermion
}
SceneAsset *GltfSceneAssetInstance::getInstanceOwner() {
return static_cast<SceneAsset *>(_instanceOwner);
}
}