Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22864/src/net/sourceforge/bprocessor/gui
Modified Files:
PopupMenu.java
Log Message:
New scale command
Commented out some setNormals calls
Index: PopupMenu.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/PopupMenu.java,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** PopupMenu.java 22 Oct 2007 15:21:26 -0000 1.54
--- PopupMenu.java 22 Oct 2007 19:26:36 -0000 1.55
***************
*** 524,528 ****
--- 524,531 ----
public void actionPerformed(ActionEvent event) {
Set<Vertex> vertices = Geometry.collect(entities);
+ Vertex center = Vertex.center(vertices);
CoordinateSystem system = Project.getInstance().getActiveCoordinateSystem();
+ system = system.copy();
+ system.setOrigin(center);
Command command = new Command.Scale(vertices, system);
AttributeView.instance().display(command);
|