git-svn-id: svn://db.shs.com.ru/libs@47 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -74,8 +74,8 @@ void GLObjectEditor::setObject(GLObjectBase * o) {
|
||||
spinLightDecayConst->setValue(l->decay_const);
|
||||
spinLightDecayLinear->setValue(l->decay_linear);
|
||||
spinLightDecayQuadratic->setValue(l->decay_quadratic);
|
||||
spinLightAngleSpread->setValue(l->angle_spread);
|
||||
spinLightAngleDecayExp->setValue(l->angle_decay_exp);
|
||||
spinLightAngleStart->setValue(l->angle_start);
|
||||
spinLightAngleEnd->setValue(l->angle_end);
|
||||
spinLightDirectionX->setValue(l->direction.x());
|
||||
spinLightDirectionY->setValue(l->direction.y());
|
||||
spinLightDirectionZ->setValue(l->direction.z());
|
||||
@@ -111,9 +111,21 @@ void GLObjectEditor::objectChanged() {
|
||||
l->decay_const = spinLightDecayConst->value();
|
||||
l->decay_linear = spinLightDecayLinear->value();
|
||||
l->decay_quadratic = spinLightDecayQuadratic->value();
|
||||
l->angle_spread = spinLightAngleSpread->value();
|
||||
l->angle_decay_exp = spinLightAngleDecayExp->value();
|
||||
l->angle_start = spinLightAngleStart->value();
|
||||
l->angle_end = spinLightAngleEnd->value();
|
||||
l->direction = QVector3D(spinLightDirectionX->value(), spinLightDirectionY->value(), spinLightDirectionZ->value()).normalized();
|
||||
}
|
||||
emit changed();
|
||||
}
|
||||
|
||||
|
||||
void GLObjectEditor::on_spinLightAngleStart_valueChanged(double v) {
|
||||
if (spinLightAngleEnd->value() < v)
|
||||
spinLightAngleEnd->setValue(v);
|
||||
}
|
||||
|
||||
|
||||
void GLObjectEditor::on_spinLightAngleEnd_valueChanged(double v) {
|
||||
if (spinLightAngleStart->value() > v)
|
||||
spinLightAngleStart->setValue(v);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user