src/gui.cpp

changeset 550
d97594e3fc54
parent 542
46a33bdc0b36
child 551
0efe5dbcef07
--- a/src/gui.cpp	Sat Dec 07 00:01:20 2013 +0200
+++ b/src/gui.cpp	Sat Dec 07 01:03:17 2013 +0200
@@ -597,7 +597,7 @@
 	contextMenu->addAction (ui->actionModeDraw);
 	contextMenu->addAction (ui->actionModeCircle);
 
-	if (R()->camera() != GL::Free)
+	if (R()->camera() != GL::EFreeCamera)
 	{	contextMenu->addSeparator();
 		contextMenu->addAction (ui->actionSetDrawDepth);
 	}
@@ -633,9 +633,9 @@
 // -----------------------------------------------------------------------------
 void ForgeWindow::updateEditModeActions()
 {	const EditMode mode = R()->getEditMode();
-	ui->actionModeSelect->setChecked (mode == Select);
-	ui->actionModeDraw->setChecked (mode == Draw);
-	ui->actionModeCircle->setChecked (mode == CircleMode);
+	ui->actionModeSelect->setChecked (mode == ESelectMode);
+	ui->actionModeDraw->setChecked (mode == EDrawMode);
+	ui->actionModeCircle->setChecked (mode == ECircleMode);
 }
 
 // =============================================================================

mercurial