trackeditor: add default surface to new track segments
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8388 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 8903b6fbbe7b8a90213df6f318462e1214fa1568 Former-commit-id: fd7f1d424f95c0e86f2d56ac1d26506fb863ee0d
This commit is contained in:
parent
e7a25fd00e
commit
97ad7af4cd
1 changed files with 4 additions and 0 deletions
|
@ -558,6 +558,7 @@ public class EditorFrame extends JFrame
|
|||
shape.setHeightStartRight(0);
|
||||
shape.setHeightEndLeft(0);
|
||||
shape.setHeightEndRight(0);
|
||||
shape.setSurface(MainTrack.DEFAULT_SURFACE);
|
||||
shape.getLeft().setNewTrackDefaults();
|
||||
shape.getRight().setNewTrackDefaults();
|
||||
track.add(shape);
|
||||
|
@ -571,6 +572,7 @@ public class EditorFrame extends JFrame
|
|||
shape.setHeightStartRight(0);
|
||||
shape.setHeightEndLeft(0);
|
||||
shape.setHeightEndRight(0);
|
||||
shape.setSurface(MainTrack.DEFAULT_SURFACE);
|
||||
shape.getLeft().setNewTrackDefaults();
|
||||
shape.getRight().setNewTrackDefaults();
|
||||
shape.addToPrevious(previous);
|
||||
|
@ -583,6 +585,7 @@ public class EditorFrame extends JFrame
|
|||
shape.setHeightStartRight(0);
|
||||
shape.setHeightEndLeft(0);
|
||||
shape.setHeightEndRight(0);
|
||||
shape.setSurface(MainTrack.DEFAULT_SURFACE);
|
||||
shape.getLeft().setNewTrackDefaults();
|
||||
shape.getRight().setNewTrackDefaults();
|
||||
shape.addToPrevious(previous);
|
||||
|
@ -597,6 +600,7 @@ public class EditorFrame extends JFrame
|
|||
shape.setHeightStartRight(0);
|
||||
shape.setHeightEndLeft(0);
|
||||
shape.setHeightEndRight(0);
|
||||
shape.setSurface(MainTrack.DEFAULT_SURFACE);
|
||||
shape.getLeft().setNewTrackDefaults();
|
||||
shape.getRight().setNewTrackDefaults();
|
||||
shape.addToPrevious(previous);
|
||||
|
|
Loading…
Reference in a new issue