Skip to content

Commit

Permalink
Update Model.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fexcraft committed Mar 1, 2025
1 parent 5956892 commit d8661dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/net/fexcraft/app/fmt/polygon/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ public void renderPicking(){
}
}

public void renderVertexPicking(boolean preview){
public void renderVertexPicking(){
if(!visible) return;
for(Pivot pivot : pivots){
PolyRenderer.setPivot(pivot);
for(Group group : pivot.groups){
group.renderVertexPicking(preview);
group.renderVertexPicking();
}
PolyRenderer.setPivot(null);
}
Expand Down Expand Up @@ -837,6 +837,7 @@ public void rerootpivots(){
public void select(Pair<Polygon, Vertoff.VOKey> off){
//if(!GGR.isAltDown()) selected_verts.clear();
selected_verts.add(off);
UpdateHandler.update(new VertexSelected(off, selected_verts.size()));
Logging.bar("Currently selected vertices: " + selected_verts.size());
}

Expand All @@ -859,4 +860,9 @@ public ArrayList<Pair<Polygon, Vertoff.VOKey>> getSelectedVerts(){
return selected_verts;
}

public void clearSelectedVerts(){
selected_verts.clear();
UpdateHandler.update(new VertexSelected(null, 0));
}

}

0 comments on commit d8661dc

Please sign in to comment.