From d3a6f6e22a4d40c8bd71c4bda4869f4163aa4d34 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 6 Jan 2025 11:34:36 +0800 Subject: [PATCH] fix: add destroyCamera to ThermionViewer interface --- .../lib/src/viewer/src/thermion_viewer_base.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/thermion_dart/lib/src/viewer/src/thermion_viewer_base.dart b/thermion_dart/lib/src/viewer/src/thermion_viewer_base.dart index ed47701b..388dfbab 100644 --- a/thermion_dart/lib/src/viewer/src/thermion_viewer_base.dart +++ b/thermion_dart/lib/src/viewer/src/thermion_viewer_base.dart @@ -377,8 +377,8 @@ abstract class ThermionViewer { {int skinIndex = 0}); /// - /// Destroys [asset] and all underlying resources - /// (including instances, but excluding any manually created material instances). + /// Destroys [asset] and all underlying resources + /// (including instances, but excluding any manually created material instances). /// Future destroyAsset(ThermionAsset asset); @@ -597,7 +597,7 @@ abstract class ThermionViewer { double viewportX, double viewportY, double x, double y, double z); /// - /// Enable/disable postprocessing effects (anti-aliasing, tone mapping). Disabled by default. + /// Enable/disable postprocessing effects (anti-aliasing, tone mapping). Disabled by default. /// Future setPostProcessing(bool enabled); @@ -856,6 +856,11 @@ abstract class ThermionViewer { /// Future createCamera(); + /// + /// + /// + Future destroyCamera(covariant Camera camera); + /// /// ///