Browse Source

Rebuild joints on vertex change

master
Krisjanis Rijnieks 9 years ago
parent
commit
e08425e89f
  1. 4
      src/Surfaces/SurfaceManagerGui.cpp
  2. 2
      src/Surfaces/SurfaceManagerGui.h

4
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<ofVec3f> & vertices){

2
src/Surfaces/SurfaceManagerGui.h

@ -47,7 +47,7 @@ class SurfaceManagerGui {
ProjectionEditor * getProjectionEditor();
void onVertexChanged(ofVec3f & vertex);
void onVertexChanged(int & i);
void onVerticesChanged(vector<ofVec3f> & vertices);
void onSurfaceSelected(int & surfaceIndex);
void onVertexSelected(int & vertexIndex);

Loading…
Cancel
Save