Commit aafcbbc4 authored by Viktor Lidholt's avatar Viktor Lidholt

Fixes issue with physics debug drawing in sprites

parent 884b2cf5
......@@ -348,6 +348,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