From 0aa6ad1d9c4cb1d052d87ed5e4abafc4f9aeb108 Mon Sep 17 00:00:00 2001 From: Joshua Storost Date: Fri, 28 Jun 2024 15:22:00 +0200 Subject: [PATCH] fixed halos for open in World --- source/GM-TE/GMTETileMap.class.st | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/source/GM-TE/GMTETileMap.class.st b/source/GM-TE/GMTETileMap.class.st index 9b045f94..987d42bf 100644 --- a/source/GM-TE/GMTETileMap.class.st +++ b/source/GM-TE/GMTETileMap.class.st @@ -55,21 +55,29 @@ GMTETileMap class >> maxLayers [ { #category : #'as yet unclassified', - #'squeak_changestamp' : 'jj 6/22/2024 16:21' + #'squeak_changestamp' : 'JS 6/28/2024 15:19' } GMTETileMap class >> newFromEditableTileMap: aMap [ - | newMap | + | newMap oldMapCopy | aMap tileSelectionSet clearAllHighlightings. aMap tileMatrixStackBackground reset. "This fixed the temporary issue of orphaned morphs after copy" - newMap := (GMTETileMap newFrom: (aMap veryDeepCopy)) + oldMapCopy := aMap veryDeepCopy. + + newMap := (GMTETileMap newFrom: oldMapCopy) updateMap; hideHighlightingLayer; + removeAllMorphs; yourself. - - aMap generateBackgroundTiles. "Part of the above fix" + + oldMapCopy + submorphsDo: [:s | newMap addMorph: s]; + abandon. + + aMap generateBackgroundTiles. "Part of the above fix" + newMap generateBackgroundTiles. ^ newMap ]