diff --git a/plugins/spine/src/SpinePlugin.js b/plugins/spine/src/SpinePlugin.js index 46cc81a76..448ca7df5 100644 --- a/plugins/spine/src/SpinePlugin.js +++ b/plugins/spine/src/SpinePlugin.js @@ -12,6 +12,7 @@ var ScenePlugin = require('../../../src/plugins/ScenePlugin'); var Spine = require('Spine'); var SpineFile = require('./SpineFile'); var SpineGameObject = require('./gameobject/SpineGameObject'); +var NOOP = require('../../../src/utils/NOOP'); /** * @classdesc @@ -278,6 +279,19 @@ var SpinePlugin = new Class({ this.getAtlas = this.getAtlasCanvas; } + // Headless mode? + if (!this.renderer) + { + this.renderer = { + width: game.scale.width, + height: game.scale.height, + preRender: NOOP, + postRender: NOOP, + render: NOOP, + destroy: NOOP + }; + } + var _this = this; var add = function (x, y, key, animationName, loop)