Commit 1e683b2f authored by Viktor Lidholt's avatar Viktor Lidholt

Merge pull request #704 from vlidholt/master

Fixes issue with physics debug drawing in sprites
parents 1d8bea0a aafcbbc4
......@@ -344,6 +344,9 @@ class SpriteBox extends RenderBox {
_rootNode._visit(canvas, totalMatrix);
// Draw physics debug
if (_physicsNodes == null)
_rebuildActionControllersAndPhysicsNodes();
for (PhysicsWorld world in _physicsNodes) {
if (world.drawDebug) {
canvas.setMatrix(world._debugDrawTransform.storage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment