You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix errors on engine startup.
Fixes a bunch of the most spammy console errors introduced by recent refactorings: - `AudioServerState` does not exist, this was the reference to it in the source. The surrounding code made it clear that `AudioServerLayout` was meant to be used instead. - `StreamCSVTranslation` same here, it's the only reference. I went with `Translation` here, but I'm not 100% sure on this one. - Some methods have been moved from `Texture` to `Image`, but the old bindings were still there. - A few `name == ""` errors related to duplicating nodes.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user