Skip to content

Commit

Permalink
Fix end time upon deletion of morphs in the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
luap42 committed Aug 1, 2022
1 parent 9449f78 commit 785736c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ deleteMorph
self selectedTreeNode ifNil: [self updateInformationText: self messageNoMorphSelected. ^ 'break'].
self removeMorphProperties.
self clearPropertyEditorPanel.
self timeline clearTimeline.
self propertyTreeMorph update: self propertyTreeMorph getChildrenSelector.
self selectedTreeNode: nil.

self propertyList isEmpty
ifFalse: [self selectedTreeNode: (self propertyList first).
self propertyStartEnd update: #deleteMorph]
ifTrue: [self selectedTreeNode: nil.
self propertyStartEnd update: #deleteLastMorph].

self timeline clearTimeline.
self updateInformationText: self messageMorphDeleted.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"createTextPropertyOn:" : "LW 7/26/2021 16:44",
"defaultEmptyPanels" : "DM 8/7/2020 17:37",
"defaultPropertyPanelPosition" : "mjs 7/31/2021 16:18",
"deleteMorph" : "ob 7/30/2022 17:22",
"deleteMorph" : "ps 8/1/2022 18:57",
"editorTitle" : "LH 8/4/2020 10:31",
"editorTitle:" : "DM 8/3/2020 15:40",
"emptyPanels" : "DM 8/7/2020 17:37",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ update: aSymbol
ifTrue:[self endTime < self findLastKey ifTrue:[self endTime: self findLastKey]].

aSymbol = #deleteKeyframes
ifTrue:[self endTime > self findLastKey ifTrue:[self endTime: self findLastKey]].
ifTrue:[self endTime > self findLastKey ifTrue:[self endTime: self findLastKey]].

aSymbol = #deleteMorph
ifTrue:[self endTime: self findLastKey].

aSymbol = #deleteLastMorph
ifTrue:[self endTime: self defaultEndTime].
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"startTime" : "FH 8/1/2021 19:29",
"startTime:" : "FH 8/1/2021 19:29",
"startTimeAsString" : "FH 8/1/2021 19:30",
"update:" : "ob 6/26/2022 17:55" } }
"update:" : "ps 8/1/2022 18:58" } }

0 comments on commit 785736c

Please sign in to comment.