Minor bugfixes in world/character editors

This commit is contained in:
parax0 2016-05-03 03:18:42 -06:00
parent 57451e231d
commit af59009b56
2 changed files with 2 additions and 3 deletions

View File

@ -272,9 +272,7 @@ void CCharacterEditor::ToggleBindPose(bool Enable)
} }
if (Enable && mPlayAnim) if (Enable && mPlayAnim)
{ TogglePlay();
SetAnimTime(0.f);
}
ui->AnimSlider->setEnabled(!Enable); ui->AnimSlider->setEnabled(!Enable);
mBindPose = Enable; mBindPose = Enable;

View File

@ -126,6 +126,7 @@ CWorldEditor::CWorldEditor(QWidget *parent)
connect(ui->ActionDrawCollision, SIGNAL(triggered()), this, SLOT(ToggleDrawCollision())); connect(ui->ActionDrawCollision, SIGNAL(triggered()), this, SLOT(ToggleDrawCollision()));
connect(ui->ActionDrawObjectCollision, SIGNAL(triggered()), this, SLOT(ToggleDrawObjectCollision())); connect(ui->ActionDrawObjectCollision, SIGNAL(triggered()), this, SLOT(ToggleDrawObjectCollision()));
connect(ui->ActionDrawLights, SIGNAL(triggered()), this, SLOT(ToggleDrawLights())); connect(ui->ActionDrawLights, SIGNAL(triggered()), this, SLOT(ToggleDrawLights()));
connect(ui->ActionDrawSky, SIGNAL(triggered()), this, SLOT(ToggleDrawSky()));
connect(ui->ActionGameMode, SIGNAL(triggered()), this, SLOT(ToggleGameMode())); connect(ui->ActionGameMode, SIGNAL(triggered()), this, SLOT(ToggleGameMode()));
connect(ui->ActionDisableBackfaceCull, SIGNAL(triggered()), this, SLOT(ToggleBackfaceCull())); connect(ui->ActionDisableBackfaceCull, SIGNAL(triggered()), this, SLOT(ToggleBackfaceCull()));
connect(ui->ActionDisableAlpha, SIGNAL(triggered()), this, SLOT(ToggleDisableAlpha())); connect(ui->ActionDisableAlpha, SIGNAL(triggered()), this, SLOT(ToggleDisableAlpha()));