git-svn-id: svn://db.shs.com.ru/libs@707 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -49,7 +49,7 @@ ObjectEditor::ObjectEditor(QWidget * parent): QWidget(parent) {
|
||||
connect(o, SIGNAL(valueChanged(double)), this, SLOT(spinLightChanged(double)));
|
||||
|
||||
ol.clear();
|
||||
ol << ui->spinCameraFOV << ui->spinCameraDepthStart << ui->spinAimDist;
|
||||
ol << ui->spinCameraFOV << ui->spinCameraDepthStart << ui->spinCameraRoll << ui->spinAimDist;
|
||||
foreach (QObject * o, ol)
|
||||
connect(o, SIGNAL(valueChanged(double)), this, SLOT(spinCameraChanged(double)));
|
||||
|
||||
@@ -152,6 +152,7 @@ void ObjectEditor::setObject(ObjectBase * o) {
|
||||
ui->checkCameraMirrorX->setChecked(c->isMirrorX());
|
||||
ui->checkCameraMirrorY->setChecked(c->isMirrorY());
|
||||
ui->spinCameraFOV->setValue(c->FOV());
|
||||
ui->spinCameraRoll->setValue(c->angleRoll());
|
||||
ui->spinCameraDepthStart->setValue(c->depthStart());
|
||||
ui->spinAimDist->setValue(c->distance());
|
||||
}
|
||||
@@ -240,8 +241,9 @@ void ObjectEditor::spinCameraChanged(double v) {
|
||||
QObject * s = sender();
|
||||
foreach (Camera * o, scl) {
|
||||
if (s == ui->spinCameraFOV ) o->setFOV (v);
|
||||
if (s == ui->spinCameraRoll ) o->setAngleRoll (v);
|
||||
if (s == ui->spinCameraDepthStart) o->setDepthStart(v);
|
||||
if (s == ui->spinAimDist ) o->setDistance(v);
|
||||
if (s == ui->spinAimDist ) o->setDistance (v);
|
||||
}
|
||||
ignore_next = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user