[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view Display.java, 1.66, 1.67
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-12-12 14:38:44
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28498/src/net/sourceforge/bprocessor/gl/view Modified Files: Display.java Log Message: Moved proto and anchor to instance Index: Display.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/Display.java,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** Display.java 12 Dec 2007 14:14:31 -0000 1.66 --- Display.java 12 Dec 2007 14:38:47 -0000 1.67 *************** *** 1142,1154 **** private static void translateToCoordinatesystem(Space space) { List<CoordinateSystem> translation = new LinkedList<CoordinateSystem>(); ! if (space.isInstance()) { ! translation.add(space.getInstanceAnchor()); ! } ! while (space.getOwner() != null) { ! if (space.getOwner().isInstance()) { ! translation.add(0, space.getOwner().getInstanceAnchor()); } ! space = space.getOwner(); ! } for (CoordinateSystem cs : translation) { --- 1142,1155 ---- private static void translateToCoordinatesystem(Space space) { List<CoordinateSystem> translation = new LinkedList<CoordinateSystem>(); ! ! Space current = space; ! ! while (current != null) { ! if (current instanceof Instance) { ! Instance instance = (Instance) current; ! translation.add(0, instance.getInstanceAnchor()); } ! current = current.getOwner(); ! } for (CoordinateSystem cs : translation) { |