distance to closest node displayed, timing problems with midi notes being sent 1 to 3ms too early, or too late
This commit is contained in:
+4
-2
@@ -53,7 +53,9 @@ class AppState{
|
||||
for(auto &n : copy_nodes_ids){
|
||||
int old_id = n;
|
||||
int new_id = nm.copyNode(n, position + nm.nodes[n].drag_offset);
|
||||
|
||||
nm.nodes[new_id].copied = false;
|
||||
nm.nodes[new_id].selected = true;
|
||||
|
||||
for(auto &c : copy_connections){
|
||||
if(c.v1 == old_id) c.v1 = new_id;
|
||||
if(c.v2 == old_id) c.v2 = new_id;
|
||||
@@ -121,10 +123,10 @@ class AppState{
|
||||
void draw(Vec2D<float> *mouse_pos, Camera2D *camera){
|
||||
mutex.lock();
|
||||
updateMidiPorts();
|
||||
mutex.unlock();
|
||||
nm.drawNodes(mouse_pos, camera);
|
||||
cm.drawConnections(mouse_pos, camera);
|
||||
sm.drawSignals(mouse_pos, camera);
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void drawUI(Vec2D<float> *mouse_pos, Camera2D *camera){
|
||||
|
||||
Reference in New Issue
Block a user