diff --git a/src/meshlab/images/lightoff.png b/src/meshlab/images/lightoff.png
new file mode 100644
index 000000000..e20ee8f57
Binary files /dev/null and b/src/meshlab/images/lightoff.png differ
diff --git a/src/meshlab/mainwindow.cpp b/src/meshlab/mainwindow.cpp
index 99093702d..4c30ba007 100644
--- a/src/meshlab/mainwindow.cpp
+++ b/src/meshlab/mainwindow.cpp
@@ -24,6 +24,9 @@
History
$Log$
+Revision 1.30 2005/11/25 12:58:58 alemochi
+Added new icon that represent the changing of lighting state and modified function.
+
Revision 1.29 2005/11/25 11:55:59 alemochi
Added function to Enable/Disable lighting (work in progress)
@@ -484,8 +487,17 @@ void MainWindow::SetLight()
if (GLA()!=NULL)
{
const RenderMode &rm=GLA()->getRenderState();
- if (rm.Lighting) GLA()->setLight(false);
- else GLA()->setLight(true);
+ if (rm.Lighting)
+ {
+
+ GLA()->setLight(false);
+ setLightOnAct->setIcon(QIcon(":/images/lightoff.png"));
+ }
+ else
+ {
+ setLightOnAct->setIcon(QIcon(":/images/lighton.png"));
+ GLA()->setLight(true);
+ }
}
};
diff --git a/src/meshlab/meshlab.qrc b/src/meshlab/meshlab.qrc
index 787645d47..b6afb013f 100644
--- a/src/meshlab/meshlab.qrc
+++ b/src/meshlab/meshlab.qrc
@@ -9,6 +9,7 @@
images/save.png
images/smooth.png
images/wire.png
- images/lighton.png
+ images/lighton.png
+ images/lightoff.png