Added PaintGui for textures.

This commit is contained in:
Tats
2014-10-16 17:51:41 +00:00
parent 948a68c8ee
commit fc89b4fb11
3 changed files with 91 additions and 2 deletions
+5 -1
View File
@@ -1532,7 +1532,11 @@ void MainWindow::addPaintItem(uid paintId, const QIcon& icon, const QString& nam
// Create paint gui.
PaintGui::ptr paintGui;
QString paintType = paint->getType();
if (paintType == "color")
if (paintType == "media")
paintGui = PaintGui::ptr(new MediaGui(paint));
else if (paintType == "image")
paintGui = PaintGui::ptr(new ImageGui(paint));
else if (paintType == "color")
paintGui = PaintGui::ptr(new ColorGui(paint));
else
paintGui = PaintGui::ptr(new PaintGui(paint));