Skip to content

Commit 99ac06f

Browse files
committed
Bug fix
1 parent 5946612 commit 99ac06f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

iwsy/resources/ecs/blocks.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,16 @@ SaveSelectedBlock:
212212
set property PropertyName of Block to PropertyValue
213213
add 1 to N
214214
end
215-
set property BlockName of Blocks to Block
216215
index BlockNameInput to SelectedBlock
216+
put element SelectedBlock of BlockNames into BlockName
217217
if BlockNameInput is not BlockName
218218
begin
219+
print `deleting`
219220
json delete property BlockName of Blocks
220221
put BlockNameInput into BlockName
221222
set element SelectedBlock of BlockNames to BlockName
222-
set property BlockName of Blocks to Block
223223
end
224+
set property BlockName of Blocks to Block
224225
set property `blocks` of Presentation to Blocks
225226

226227
! Tell the parent to refresh the script

0 commit comments

Comments
 (0)