diff --git a/src/Surfaces/SurfaceManagerGui.cpp b/src/Surfaces/SurfaceManagerGui.cpp index 8ca67b0..751fe71 100644 --- a/src/Surfaces/SurfaceManagerGui.cpp +++ b/src/Surfaces/SurfaceManagerGui.cpp @@ -340,8 +340,10 @@ ProjectionEditor * SurfaceManagerGui::getProjectionEditor(){ return &projectionEditor; } -void SurfaceManagerGui::onVertexChanged(ofVec3f & vertex){ +void SurfaceManagerGui::onVertexChanged(int & i){ //cout << "VERTEX CHANGED: " << vertex.x << ", " << vertex.y << endl; + projectionEditor.createJoints(); + projectionEditor.getJoints()->at(i)->select(); } void SurfaceManagerGui::onVerticesChanged(vector & vertices){ diff --git a/src/Surfaces/SurfaceManagerGui.h b/src/Surfaces/SurfaceManagerGui.h index 3b13d18..210d977 100644 --- a/src/Surfaces/SurfaceManagerGui.h +++ b/src/Surfaces/SurfaceManagerGui.h @@ -47,7 +47,7 @@ class SurfaceManagerGui { ProjectionEditor * getProjectionEditor(); - void onVertexChanged(ofVec3f & vertex); + void onVertexChanged(int & i); void onVerticesChanged(vector & vertices); void onSurfaceSelected(int & surfaceIndex); void onVertexSelected(int & vertexIndex);