Skip to content

Commit 0aa6ad1

Browse files
author
Joshua Storost
committed
fixed halos for open in World
1 parent 93ad0bf commit 0aa6ad1

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

source/GM-TE/GMTETileMap.class.st

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,29 @@ GMTETileMap class >> maxLayers [
5555

5656
{
5757
#category : #'as yet unclassified',
58-
#'squeak_changestamp' : 'jj 6/22/2024 16:21'
58+
#'squeak_changestamp' : 'JS 6/28/2024 15:19'
5959
}
6060
GMTETileMap class >> newFromEditableTileMap: aMap [
6161

62-
| newMap |
62+
| newMap oldMapCopy |
6363
aMap tileSelectionSet clearAllHighlightings.
6464

6565
aMap tileMatrixStackBackground reset. "This fixed the temporary issue of orphaned morphs after copy"
6666

67-
newMap := (GMTETileMap newFrom: (aMap veryDeepCopy))
67+
oldMapCopy := aMap veryDeepCopy.
68+
69+
newMap := (GMTETileMap newFrom: oldMapCopy)
6870
updateMap;
6971
hideHighlightingLayer;
72+
removeAllMorphs;
7073
yourself.
71-
72-
aMap generateBackgroundTiles. "Part of the above fix"
74+
75+
oldMapCopy
76+
submorphsDo: [:s | newMap addMorph: s];
77+
abandon.
78+
79+
aMap generateBackgroundTiles. "Part of the above fix"
80+
newMap generateBackgroundTiles.
7381
^ newMap
7482
]
7583

0 commit comments

Comments
 (0)