File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ func _ready():
2929
3030
3131func _on_button_pressed ():
32- pass
32+ _print_generated_script ()
3333
3434
3535func switch_script (block_code_node : BlockCode ):
@@ -74,11 +74,10 @@ func _input(event):
7474 else :
7575 _drag_manager .drag_ended ()
7676
77- # HACK: play the topmost block
78- if event is InputEventKey :
79- if event .keycode == KEY_F and event .pressed :
80- if _current_bsd :
81- var script : String = _block_canvas .generate_script_from_current_window (_current_bsd .script_inherits )
8277
83- print (script )
84- print ("Debug script! (not saved)" )
78+ func _print_generated_script ():
79+ if _current_bsd == null :
80+ return
81+ var script : String = _block_canvas .generate_script_from_current_window (_current_bsd .script_inherits )
82+ print (script )
83+ print ("Debug script! (not saved)" )
You can’t perform that action at this time.
0 commit comments