From 61491173a650e0e5c2a54d2d7deba6d9816ac12e Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Mon, 1 Feb 2016 17:00:28 +0100
Subject: [PATCH] Draw nice wireframe for the `GridWarpSurface`

---
 src/Surfaces/SurfaceManagerGui.cpp | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/src/Surfaces/SurfaceManagerGui.cpp b/src/Surfaces/SurfaceManagerGui.cpp
index 3f902f1..6f4696a 100644
--- a/src/Surfaces/SurfaceManagerGui.cpp
+++ b/src/Surfaces/SurfaceManagerGui.cpp
@@ -290,12 +290,17 @@ void SurfaceManagerGui::drawSelectedSurfaceHighlight(){
 	if(surfaceManager->getSelectedSurface() == 0){
 		return;
 	}
-	ofPolyline line = surfaceManager->getSelectedSurface()->getHitArea();
-	ofPushStyle();
-	ofSetLineWidth(1);
-	ofSetColor(255, 255, 255, 255);
-	line.draw();
-	ofPopStyle();
+	
+	if(surfaceManager->getSelectedSurface()->getType() == SurfaceType::GRID_WARP_SURFACE){
+		surfaceManager->getSelectedSurface()->getMesh().drawWireframe();
+	} else {
+		ofPolyline line = surfaceManager->getSelectedSurface()->getHitArea();
+		ofPushStyle();
+		ofSetLineWidth(1);
+		ofSetColor(255, 255, 255, 255);
+		line.draw();
+		ofPopStyle();
+	}
 }
 
 void SurfaceManagerGui::drawSelectedSurfaceTextureHighlight(){