DebugDrawData

I have a small issue with Box2D in a context specific to my game engine framework. My game engine uses two separate methods, one for frames/steps and the other to draw everything. Doing this helps keep my code clean. Anyways, I wanted to enable debug drawing to help with troubleshooting but it seems Box2D calls b2World::DebugDrawData() with b2World::Step(). After b2World::Step() gets called in my frame method my draw method gets called and clears the screen and such (overwriting the debug info).

It was no big deal to patch in a fix for my engine but I was wondering- would make sense to separate DebugDrawData() from Step() somehow? Has anyone else run into this?



btw- I just registered and that human verification image is so freakin' frustratingly impossible to read! I initially tried 10 times and eventually got locked out 😆
The step and debug draw have been separated in the development version of Box2D. Expect the next release to include this.

We are having problems with SPAM lately. I've tried almost everything possible to reduce it. I may have to require manual registration.
Erin- Rockin! Thank you!

Original thread: https://box2d.org/forum/viewtopic.php?t=3594