mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 17:07:43 +00:00
Added canvas debug
This commit is contained in:
parent
6505e6837a
commit
79bd0342ac
1 changed files with 8 additions and 4 deletions
|
@ -30,15 +30,19 @@ var SpineGameObjectCanvasRenderer = function (renderer, src, interpolationPercen
|
|||
return;
|
||||
}
|
||||
|
||||
src.plugin.skeletonRenderer.ctx = context;
|
||||
var plugin = src.plugin;
|
||||
var skeleton = src.skeleton;
|
||||
var skeletonRenderer = plugin.skeletonRenderer;
|
||||
|
||||
skeletonRenderer.ctx = context;
|
||||
|
||||
context.save();
|
||||
|
||||
src.skeleton.updateWorldTransform();
|
||||
// src.skeleton.updateWorldTransform();
|
||||
|
||||
src.plugin.skeletonRenderer.draw(src.skeleton);
|
||||
skeletonRenderer.draw(skeleton);
|
||||
|
||||
if (src.renderDebug)
|
||||
if (plugin.drawDebug || src.drawDebug)
|
||||
{
|
||||
context.strokeStyle = '#00ff00';
|
||||
context.beginPath();
|
||||
|
|
Loading…
Reference in a new issue