Skip to content

Commit

Permalink
update with to do comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ol-Ba committed Jul 12, 2022
1 parent 4efe708 commit 761549e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
messaging
deleteMorph
"NEEDS REFACTORING"
"selected tree node needs to be set to some property when the morph is added"
"not tested on other morphs apart from normal morph"
self selectedTreeNode ifNil: [^ 'break'].
"check if the morph is open in world than you can delete the worph from the world"
self selectedTreeNode targetMorph isInWorld ifTrue: [
self propertyList copy do: [:each |


(self selectedTreeNode targetMorph = each targetMorph or: (self selectedTreeNode targetMorph hasSubmorphs ifTrue: [self selectedTreeNode targetMorph submorphs first = each targetMorph])) "checks if selected tree node or it's child (because it can be a transformation morph that has target morph a child) the same as the one of the morphs in the property list"
ifTrue: [self selectedTreeNode targetMorph removeFlexShell. self propertyList remove: each. each targetMorph abandon. ].].].
ifTrue: [self selectedTreeNode targetMorph removeFlexShell. self propertyList remove: each. each targetMorph abandon. ].].


"to do: delete the JSON! for that look in animations editor property animated >> deleteAllKeyframes"
self propertyTreeMorph update: self propertyTreeMorph getChildrenSelector.

self propertyEditorPanel submorphs do: [:each| each abandon]. "clear property editor panel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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/12/2022 20:48",
"deleteMorph" : "ob 7/12/2022 21:19",
"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
@@ -1,5 +1,12 @@
initialization
initialize
"|planProcess|"

super initialize.
self isActivated: false.
self addStartFrame.
self addStartFrame.
"planProcess := [
[ 1 seconds asDelay wait.
self targetMorph isInWorld ifFalse: [self animationsEditor deleteMorph. planProcess terminate.]. the question is if the process actually terminates
] repeat.
] fork."
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"executeCompositeAnimation:" : "FH 8/1/2021 19:11",
"frame" : "MH 7/8/2021 11:08",
"frame:" : "MH 7/8/2021 11:10",
"initialize" : "NR 6/26/2022 14:32",
"initialize" : "ob 7/12/2022 21:16",
"isActivated" : "ob 6/26/2022 18:59",
"isActivated:" : "ob 6/26/2022 18:59",
"isFirstFrame" : "MH 7/8/2021 11:31",
Expand Down

0 comments on commit 761549e

Please sign in to comment.