mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fixes issue with physics debug drawing in sprites
This commit is contained in:
parent
884b2cf56a
commit
aafcbbc4f9
@ -348,6 +348,9 @@ class SpriteBox extends RenderBox {
|
|||||||
_rootNode._visit(canvas, totalMatrix);
|
_rootNode._visit(canvas, totalMatrix);
|
||||||
|
|
||||||
// Draw physics debug
|
// Draw physics debug
|
||||||
|
if (_physicsNodes == null)
|
||||||
|
_rebuildActionControllersAndPhysicsNodes();
|
||||||
|
|
||||||
for (PhysicsWorld world in _physicsNodes) {
|
for (PhysicsWorld world in _physicsNodes) {
|
||||||
if (world.drawDebug) {
|
if (world.drawDebug) {
|
||||||
canvas.setMatrix(world._debugDrawTransform.storage);
|
canvas.setMatrix(world._debugDrawTransform.storage);
|
||||||
|
Loading…
Reference in New Issue
Block a user