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:
iobyte 2022-08-11 15:21:03 +00:00
parent e7a25fd00e
commit 97ad7af4cd

View file

@ -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);