File tree Expand file tree Collapse file tree 5 files changed +6
-8
lines changed
addons/block_code/ui/blocks Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ func _update_template_editor():
60
60
61
61
template_editor .format_string = definition .display_template if definition else ""
62
62
template_editor .parameter_defaults = definition .get_defaults_for_node (_context .parent_node ) if definition else {}
63
+ if not template_editor .modified .is_connected (_on_template_editor_modified ):
64
+ template_editor .modified .connect (_on_template_editor_modified )
65
+
66
+
67
+ func _on_template_editor_modified ():
68
+ modified .emit ()
63
69
64
70
65
71
func _gui_input (event ):
@@ -84,10 +90,6 @@ func _gui_input(event):
84
90
EditorInterface .popup_dialog_centered (dialog )
85
91
86
92
87
- func _modified ():
88
- modified .emit ()
89
-
90
-
91
93
func remove_from_tree ():
92
94
var parent = get_parent ()
93
95
if parent :
Original file line number Diff line number Diff line change @@ -95,5 +95,4 @@ shift_top = 20.0
95
95
[node name ="SnapPoint" parent ="VBoxContainer" instance =ExtResource ("3_nhryi" )]
96
96
layout_mode = 2
97
97
98
- [connection signal ="modified" from ="." to ="." method ="_modified" ]
99
98
[connection signal ="mouse_down" from ="VBoxContainer/MarginContainer/Rows/Row/DragDropArea" to ="." method ="_on_drag_drop_area_mouse_down" ]
Original file line number Diff line number Diff line change @@ -56,4 +56,3 @@ layout_mode = 2
56
56
layout_mode = 2
57
57
58
58
[connection signal ="mouse_down" from ="VBoxContainer/TopMarginContainer/DragDropArea" to ="." method ="_on_drag_drop_area_mouse_down" ]
59
- [connection signal ="modified" from ="VBoxContainer/TopMarginContainer/MarginContainer/TemplateEditor" to ="." method ="_modified" ]
Original file line number Diff line number Diff line change @@ -48,4 +48,3 @@ theme_override_constants/margin_bottom = 8
48
48
[connection signal ="focus_entered" from ="." to ="." method ="_on_focus_entered" ]
49
49
[connection signal ="focus_exited" from ="." to ="." method ="_on_focus_exited" ]
50
50
[connection signal ="mouse_down" from ="DragDropArea" to ="." method ="_on_drag_drop_area_mouse_down" ]
51
- [connection signal ="modified" from ="MarginContainer/TemplateEditor" to ="." method ="_modified" ]
Original file line number Diff line number Diff line change @@ -55,4 +55,3 @@ layout_mode = 2
55
55
layout_mode = 2
56
56
57
57
[connection signal ="mouse_down" from ="VBoxContainer/TopMarginContainer/DragDropArea" to ="." method ="_on_drag_drop_area_mouse_down" ]
58
- [connection signal ="modified" from ="VBoxContainer/TopMarginContainer/MarginContainer/TemplateEditor" to ="." method ="_modified" ]
You can’t perform that action at this time.
0 commit comments