Skip to content

Commit

Permalink
fixed command processor for brushes
Browse files Browse the repository at this point in the history
  • Loading branch information
valteu committed Jul 9, 2024
1 parent 9c22ebd commit c5cbbf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/GM-TE/GMTEEditorTileMap.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,17 @@ GMTEEditorTileMap >> mouseMove: anEvent [

{
#category : #'event handling',
#'squeak_changestamp' : 'Valentin Teutschbein 7/9/2024 21:58'
#'squeak_changestamp' : 'Valentin Teutschbein 7/9/2024 22:13'
}
GMTEEditorTileMap >> mouseUp: anEvent [

| indicesToAdd activeLayer |
(self previousTileStates size > 0) ifTrue: [self saveTileEditChanges].
self model brush firstMatrixIndex: nil.
indicesToAdd := self model brush outputSet.
activeLayer := self model selectedLayers anyOne.
self updateTiles: (indicesToAdd asCollection) inLayer: activeLayer FromEvent: anEvent.
self model brush resetOutputSet.
(self previousTileStates size > 0) ifTrue: [self saveTileEditChanges]
]

{
Expand Down

0 comments on commit c5cbbf3

Please sign in to comment.