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; return &projectionEditor;
} }
void SurfaceManagerGui::onVertexChanged(ofVec3f & vertex){ void SurfaceManagerGui::onVertexChanged(int & i){
//cout << "VERTEX CHANGED: " << vertex.x << ", " << vertex.y << endl; //cout << "VERTEX CHANGED: " << vertex.x << ", " << vertex.y << endl;
projectionEditor.createJoints();
projectionEditor.getJoints()->at(i)->select();
} }
void SurfaceManagerGui::onVerticesChanged(vector<ofVec3f> & vertices){ void SurfaceManagerGui::onVerticesChanged(vector<ofVec3f> & vertices){

2
src/Surfaces/SurfaceManagerGui.h

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

Loading…
Cancel
Save