Disable translation of root name on scene creation
This commit is contained in:
parent
5444afae63
commit
4d13126e3b
@ -270,6 +270,7 @@ SceneCreateDialog::SceneCreateDialog() {
|
|||||||
root_name_edit = memnew(LineEdit);
|
root_name_edit = memnew(LineEdit);
|
||||||
gc->add_child(root_name_edit);
|
gc->add_child(root_name_edit);
|
||||||
root_name_edit->set_tooltip_text(TTR("When empty, the root node name is derived from the scene name based on the \"editor/naming/node_name_casing\" project setting."));
|
root_name_edit->set_tooltip_text(TTR("When empty, the root node name is derived from the scene name based on the \"editor/naming/node_name_casing\" project setting."));
|
||||||
|
root_name_edit->set_auto_translate(false);
|
||||||
root_name_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
root_name_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
root_name_edit->connect("text_submitted", callable_mp(this, &SceneCreateDialog::accept_create).unbind(1));
|
root_name_edit->connect("text_submitted", callable_mp(this, &SceneCreateDialog::accept_create).unbind(1));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user