diff options
| author | Andreas Haas | 2017-05-20 22:49:34 +0200 |
|---|---|---|
| committer | Andreas Haas | 2017-05-22 20:50:59 +0200 |
| commit | 4d8e45de17ce548601b5a9ef474197eff098a576 (patch) | |
| tree | 3b1a8136a45b1951fb8a6eb437af87d66bf62f2c /editor/script_create_dialog.cpp | |
| parent | ab938a930f865196983dc0554533f66bc71c43a1 (diff) | |
| download | godot-4d8e45de17ce548601b5a9ef474197eff098a576.tar.gz godot-4d8e45de17ce548601b5a9ef474197eff098a576.tar.zst godot-4d8e45de17ce548601b5a9ef474197eff098a576.zip | |
Diffstat (limited to 'editor/script_create_dialog.cpp')
| -rw-r--r-- | editor/script_create_dialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index 1e86d8db4..2220e3330 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -539,10 +539,12 @@ ScriptCreateDialog::ScriptCreateDialog() { /* Margins */ empty_h = memnew(Control); + empty_h->set_name("empty_h"); //duplicate() doesn't like nodes without a name empty_h->set_h_size_flags(Control::SIZE_EXPAND_FILL); empty_h->set_v_size_flags(Control::SIZE_EXPAND_FILL); empty_h->set_custom_minimum_size(Size2(0, 10 * EDSCALE)); empty_v = memnew(Control); + empty_v->set_name("empty_v"); empty_v->set_h_size_flags(Control::SIZE_EXPAND_FILL); empty_v->set_v_size_flags(Control::SIZE_EXPAND_FILL); empty_v->set_custom_minimum_size(Size2(10, 0 * EDSCALE)); |
