From eb6ef7debd48aa8140e12584577e0d5ac8c30d64 Mon Sep 17 00:00:00 2001 From: xiamidaxia Date: Wed, 30 Jun 2021 20:41:25 +0800 Subject: [PATCH] Fix SpinePlugin destroy --- plugins/spine/src/SpinePlugin.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/spine/src/SpinePlugin.js b/plugins/spine/src/SpinePlugin.js index 58013d06e..fb8ca5c6d 100644 --- a/plugins/spine/src/SpinePlugin.js +++ b/plugins/spine/src/SpinePlugin.js @@ -1131,13 +1131,11 @@ var SpinePlugin = new Class({ this.pluginManager = null; - if (sceneRenderer) + if (this.sceneRenderer) { - sceneRenderer.dispose(); - sceneRenderer = null; + this.sceneRenderer.dispose(); + this.sceneRenderer = null; } - - this.sceneRenderer = null; } });