diff --git a/src/ofxProjectionEditor.cpp b/src/ofxProjectionEditor.cpp index cc7f377..6c49856 100644 --- a/src/ofxProjectionEditor.cpp +++ b/src/ofxProjectionEditor.cpp @@ -51,6 +51,14 @@ void ofxProjectionEditor::createJoints() } } +void ofxProjectionEditor::updateJoints() +{ + vector& vertices = surfaceManager->getSelectedSurface()->getVertices(); + for ( int i=0; iposition = ofVec2f(vertices[i].x, vertices[i].y); + } +} + bool ofxProjectionEditor::hitTestJoints(ofVec2f pos) { for ( int i=0; i& vertices = surfaceManager->getSelectedSurface()->getVertices(); + for ( int i=0; i