File tree 1 file changed +13
-5
lines changed 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -55,21 +55,29 @@ GMTETileMap class >> maxLayers [
55
55
56
56
{
57
57
#category : #' as yet unclassified' ,
58
- #' squeak_changestamp' : ' jj 6/22 /2024 16:21 '
58
+ #' squeak_changestamp' : ' JS 6/28 /2024 15:19 '
59
59
}
60
60
GMTETileMap class >> newFromEditableTileMap: aMap [
61
61
62
- | newMap |
62
+ | newMap oldMapCopy |
63
63
aMap tileSelectionSet clearAllHighlightings.
64
64
65
65
aMap tileMatrixStackBackground reset. " This fixed the temporary issue of orphaned morphs after copy"
66
66
67
- newMap := (GMTETileMap newFrom: (aMap veryDeepCopy))
67
+ oldMapCopy := aMap veryDeepCopy.
68
+
69
+ newMap := (GMTETileMap newFrom: oldMapCopy)
68
70
updateMap;
69
71
hideHighlightingLayer;
72
+ removeAllMorphs;
70
73
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.
73
81
^ newMap
74
82
]
75
83
You can’t perform that action at this time.
0 commit comments