Browse Source

Add moving joints moves surface vertices now

master
Krisjanis Rijnieks 11 years ago
parent
commit
0cd7ec9fa4
  1. 3
      src/ofxSurfaceGui.cpp

3
src/ofxSurfaceGui.cpp

@ -48,6 +48,9 @@ void ofxSurfaceGui::mouseDragged(int x, int y, int button)
{
for ( int i=0; i<joints.size(); i++ ) {
joints[i].mouseDragged(x, y, button);
if ( joints[i].isDragged() ) {
surface->setVertex(i, joints[i].position);
}
}
}

Loading…
Cancel
Save