On virtual method creation cancel don't do anything.
This commit is contained in:
parent
562d241b13
commit
34d1cea6b8
2 changed files with 2 additions and 2 deletions
|
@ -3652,7 +3652,7 @@ VisualScriptEditor::VisualScriptEditor() {
|
||||||
new_virtual_method_select = memnew(VisualScriptPropertySelector);
|
new_virtual_method_select = memnew(VisualScriptPropertySelector);
|
||||||
add_child(new_virtual_method_select);
|
add_child(new_virtual_method_select);
|
||||||
new_virtual_method_select->connect("selected", this, "_selected_new_virtual_method");
|
new_virtual_method_select->connect("selected", this, "_selected_new_virtual_method");
|
||||||
new_virtual_method_select->get_cancel()->connect("pressed", this, "_selected_new_virtual_method");
|
new_virtual_method_select->get_cancel();
|
||||||
|
|
||||||
member_popup = memnew(PopupMenu);
|
member_popup = memnew(PopupMenu);
|
||||||
add_child(member_popup);
|
add_child(member_popup);
|
||||||
|
|
|
@ -176,7 +176,7 @@ class VisualScriptEditor : public ScriptEditorBase {
|
||||||
|
|
||||||
void _cancel_connect_node();
|
void _cancel_connect_node();
|
||||||
void _create_new_node(const String &p_text, const String &p_category, const Vector2 &p_point);
|
void _create_new_node(const String &p_text, const String &p_category, const Vector2 &p_point);
|
||||||
void _selected_new_virtual_method(const String &p_text = String(""), const String &p_category = String(""), const bool p_connecting = true);
|
void _selected_new_virtual_method(const String &p_text, const String &p_category, const bool p_connecting);
|
||||||
|
|
||||||
int error_line;
|
int error_line;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue