Commit f878c1bc authored by Jan Möbius's avatar Jan Möbius
Browse files

Added missing slot to react on fixed position checkbox change ... Needs to be checked

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10084 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c3077190
......@@ -63,6 +63,8 @@ LightWidget::LightWidget( ACG::SceneGraph::BaseNode* _node, QWidget *parent)
connect(directional,SIGNAL(clicked()),this,SLOT(directionalToggled()));
connect(fixedPosition ,SIGNAL(clicked()),this,SLOT(fixedPositionChanged()));
connect(xpos,SIGNAL(editingFinished()),this,SLOT(directionalToggled()));
connect(ypos,SIGNAL(editingFinished()),this,SLOT(directionalToggled()));
connect(zpos,SIGNAL(editingFinished()),this,SLOT(directionalToggled()));
......@@ -178,6 +180,17 @@ void LightWidget::directionalToggled() {
}
void LightWidget::fixedPositionChanged() {
// Block if we currently update the widgets or if we dont get the object
if (updatingWidgets_ || !getObject() )
return;
light_->fixedPosition( fixedPosition->isChecked() );
updated();
}
void LightWidget::ambientChanged() {
// Block if we currently update the widgets or if we dont get the object
......
......@@ -57,6 +57,9 @@ class DLLEXPORT LightWidget : public QDialog, public Ui::LightWidgetBase
/// The directional checkbox changed -> update object
void directionalToggled();
/// The fixed position checkbox
void fixedPositionChanged();
/// Color values have changed
void ambientChanged();
void diffuseChanged();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment