fix particle debug when unpaused (#343)

This commit is contained in:
Mark Theng 2016-10-01 11:54:03 +08:00 committed by jacob1
parent 69d28bd7b0
commit 8e0708daad

View File

@ -62,6 +62,7 @@ bool ParticleDebug::KeyPress(int key, Uint16 character, bool shift, bool ctrl, b
{
if (key == 'f')
{
model->SetPaused(1);
if (alt)
{
Debug(0, 0, 0);
@ -96,7 +97,6 @@ bool ParticleDebug::KeyPress(int key, Uint16 character, bool shift, bool ctrl, b
{
model->FrameStep(1);
}
model->SetPaused(1);
}
return false;
}