Small fixes to redundand code, copy paste bugs
This commit is contained in:
parent
1fed266bf5
commit
616ab4fac2
13 changed files with 16 additions and 18 deletions
|
|
@ -2232,9 +2232,7 @@ void GDScriptParser::_parse_pattern_block(BlockNode *p_block, Vector<PatternBran
|
|||
break; // go back a level
|
||||
}
|
||||
|
||||
if (pending_newline != -1) {
|
||||
pending_newline = -1;
|
||||
}
|
||||
pending_newline = -1;
|
||||
|
||||
PatternBranchNode *branch = alloc_node<PatternBranchNode>();
|
||||
branch->body = alloc_node<BlockNode>();
|
||||
|
|
|
|||
|
|
@ -496,7 +496,7 @@ struct TextDocumentSyncOptions {
|
|||
dict["willSave"] = willSave;
|
||||
dict["openClose"] = openClose;
|
||||
dict["change"] = change;
|
||||
dict["change"] = save.to_json();
|
||||
dict["save"] = save.to_json();
|
||||
return dict;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ class VisualScriptEditor : public ScriptEditorBase {
|
|||
void _update_node_size(int p_id);
|
||||
void _port_name_focus_out(const Node *p_name_box, int p_id, int p_port, bool is_input);
|
||||
|
||||
Vector2 _get_available_pos(bool centered = true, Vector2 pos = Vector2()) const;
|
||||
Vector2 _get_available_pos(bool centered = true, Vector2 ofs = Vector2()) const;
|
||||
StringName _get_function_of_node(int p_id) const;
|
||||
|
||||
void _move_nodes_with_rescan(const StringName &p_func_from, const StringName &p_func_to, int p_id);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class VisualScriptPropertySelector : public ConfirmationDialog {
|
|||
|
||||
void create_visualscript_item(const String &name, TreeItem *const root, const String &search_input, const String &text);
|
||||
|
||||
void get_visual_node_names(const String &root_filter, const Set<String> &filter, bool &found, TreeItem *const root, LineEdit *const search_box);
|
||||
void get_visual_node_names(const String &root_filter, const Set<String> &p_modifiers, bool &found, TreeItem *const root, LineEdit *const search_box);
|
||||
|
||||
void _sbox_input(const Ref<InputEvent> &p_ie);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue