@@ -29,7 +29,7 @@ module.exports = {
2929 extension
3030 . setExtensionInformation (
3131 'SpineObject' ,
32- _ ( 'Spine' ) ,
32+ _ ( 'Spine (experimental) ' ) ,
3333 _ ( 'Displays a Spine animation.' ) ,
3434 'Vladyslav Pohorielov' ,
3535 'Open source (MIT License)'
@@ -39,24 +39,24 @@ module.exports = {
3939
4040 extension
4141 . addInstructionOrExpressionGroupMetadata ( _ ( 'Spine' ) )
42- . setIcon ( 'CppPlatform /Extensions/spriteicon.png ' ) ;
42+ . setIcon ( 'JsPlatform /Extensions/spine.svg ' ) ;
4343
4444 const object = extension
4545 . addObject (
4646 'SpineObject' ,
47- _ ( 'Spine' ) ,
47+ _ ( 'Spine (experimental) ' ) ,
4848 _ (
49- 'Display and animate Spine skeleton. Select Spine files (json, atlas, image).'
49+ 'Display and smoothly animate a 2D object with skeletal animations made with Spine. Use files exported from Spine (json, atlas and image).'
5050 ) ,
51- 'CppPlatform /Extensions/spriteicon.png ' ,
51+ 'JsPlatform /Extensions/spine.svg ' ,
5252 new gd . SpineObjectConfiguration ( )
5353 )
5454 . setIncludeFile ( 'Extensions/Spine/spineruntimeobject.js' )
5555 . addIncludeFile ( 'Extensions/Spine/spineruntimeobject-pixi-renderer.js' )
5656 . addIncludeFile ( 'Extensions/Spine/pixi-spine/pixi-spine.js' )
5757 . addIncludeFile ( 'Extensions/Spine/managers/pixi-spine-atlas-manager.js' )
5858 . addIncludeFile ( 'Extensions/Spine/managers/pixi-spine-manager.js' )
59- . setCategoryFullName ( _ ( 'General ' ) ) ;
59+ . setCategoryFullName ( _ ( 'Advanced ' ) ) ;
6060
6161 object
6262 . addExpressionAndConditionAndAction (
@@ -107,8 +107,8 @@ module.exports = {
107107 ) ,
108108 _ ( 'The animation of _PARAM0_ is complete' ) ,
109109 _ ( 'Animations and images' ) ,
110- 'res/conditions/animation24.png ' ,
111- 'res/conditions/animation.png '
110+ 'JsPlatform/Extensions/spine.svg ' ,
111+ 'JsPlatform/Extensions/spine.svg '
112112 )
113113 . addParameter ( 'object' , _ ( 'Spine' ) , 'SpineObject' )
114114 . markAsSimple ( )
@@ -122,7 +122,7 @@ module.exports = {
122122 _ ( 'an animation is updatable' ) ,
123123 _ ( 'Updatable' ) ,
124124 '' ,
125- 'res/conditions/animation.png '
125+ 'JsPlatform/Extensions/spine.svg '
126126 )
127127 . addParameter ( 'object' , _ ( 'Spine' ) , 'SpineObject' )
128128 . useStandardParameters ( 'boolean' , gd . ParameterOptions . makeNewOptions ( ) )
@@ -139,7 +139,7 @@ module.exports = {
139139 ) ,
140140 _ ( 'the number of the animation' ) ,
141141 _ ( 'Animations and images' ) ,
142- 'res/actions/animation24.png '
142+ 'JsPlatform/Extensions/spine.svg '
143143 )
144144 . addParameter ( 'object' , _ ( 'Spine' ) , 'SpineObject' )
145145 . useStandardParameters ( 'number' , gd . ParameterOptions . makeNewOptions ( ) )
@@ -156,7 +156,7 @@ module.exports = {
156156 _ ( 'the animation played by the object' ) ,
157157 _ ( 'the animation' ) ,
158158 _ ( 'Animations and images' ) ,
159- 'res/actions/animation24.png '
159+ 'JsPlatform/Extensions/spine.svg '
160160 )
161161 . addParameter ( 'object' , _ ( 'Spine' ) , 'SpineObject' )
162162 . useStandardParameters (
@@ -242,7 +242,7 @@ module.exports = {
242242 }
243243
244244 static getThumbnail ( project , resourcesLoader , objectConfiguration ) {
245- return 'CppPlatform /Extensions/spriteicon.png ' ;
245+ return 'JsPlatform /Extensions/spine.svg ' ;
246246 }
247247
248248 update ( ) {
@@ -352,7 +352,7 @@ module.exports = {
352352
353353 onRemovedFromScene ( ) {
354354 super . onRemovedFromScene ( ) ;
355- this . _pixiObject . destroy ( true ) ;
355+ this . _pixiObject . destroy ( { children : true } ) ;
356356 }
357357
358358 /**
@@ -379,14 +379,12 @@ module.exports = {
379379 . getSpineData ( this . _project , spineResourceName )
380380 . then ( ( spineDataOrLoadingError ) => {
381381 if ( ! spineDataOrLoadingError . skeleton ) {
382- const loadingError =
383- spineDataOrLoadingError . loadingError ||
384- ( spineDataOrLoadingError . textureAtlasOrLoadingError
385- ? spineDataOrLoadingError . textureAtlasOrLoadingError
386- . loadingError
387- : null ) ;
388382 console . error (
389- 'Unable to load Spine: ' + ( loadingError || 'Unknown reason.' )
383+ 'Unable to load Spine (' +
384+ ( spineDataOrLoadingError . loadingErrorReason ||
385+ 'Unknown reason' ) +
386+ ')' ,
387+ spineDataOrLoadingError . loadingError
390388 ) ;
391389 this . _spine = null ;
392390 return ;
0 commit comments