From b89574fc5f66d542cdc61572bc41d45ad5619de7 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sun, 8 Jan 2023 23:33:39 +0100 Subject: [PATCH] this better be fixed --- buildnumber.txt | 2 +- source/flx3d/Flx3DView.hx | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/buildnumber.txt b/buildnumber.txt index 7bd13c7f..962a4e94 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1955 \ No newline at end of file +1956 \ No newline at end of file diff --git a/source/flx3d/Flx3DView.hx b/source/flx3d/Flx3DView.hx index 4a6b6e6a..75d2f18a 100644 --- a/source/flx3d/Flx3DView.hx +++ b/source/flx3d/Flx3DView.hx @@ -131,8 +131,14 @@ class Flx3DView extends FlxView3D { var bundle = Asset3DLibraryBundle.getInstance('Flx3DView-${__cur3DStageID}'); @:privateAccess if (bundle != null) - for(asset in bundle._assets) - bundle.removeAsset(asset, true); + for(asset in bundle._assets) { + // very unstable!! + try { + bundle.removeAsset(asset, true); + } catch(e) { + // woops + } + } } public inline function addChild(c)