Repaired mistyped of 'just_disconnected'.
This commit is contained in:
parent
6312f18f8e
commit
596ba88869
2 changed files with 7 additions and 7 deletions
|
@ -406,7 +406,7 @@ void GraphEdit::_top_layer_input(const Ref<InputEvent> &p_ev) {
|
|||
connecting_color = Object::cast_to<GraphNode>(to)->get_connection_input_color(E->get().to_port);
|
||||
connecting_target = false;
|
||||
connecting_to = pos;
|
||||
just_disconected = true;
|
||||
just_disconnected = true;
|
||||
|
||||
emit_signal("disconnection_request", E->get().from, E->get().from_port, E->get().to, E->get().to_port);
|
||||
to = get_node(String(connecting_from)); //maybe it was erased
|
||||
|
@ -427,7 +427,7 @@ void GraphEdit::_top_layer_input(const Ref<InputEvent> &p_ev) {
|
|||
connecting_color = gn->get_connection_output_color(j);
|
||||
connecting_target = false;
|
||||
connecting_to = pos;
|
||||
just_disconected = false;
|
||||
just_disconnected = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -453,7 +453,7 @@ void GraphEdit::_top_layer_input(const Ref<InputEvent> &p_ev) {
|
|||
connecting_color = Object::cast_to<GraphNode>(fr)->get_connection_output_color(E->get().from_port);
|
||||
connecting_target = false;
|
||||
connecting_to = pos;
|
||||
just_disconected = true;
|
||||
just_disconnected = true;
|
||||
|
||||
emit_signal("disconnection_request", E->get().from, E->get().from_port, E->get().to, E->get().to_port);
|
||||
fr = get_node(String(connecting_from)); //maybe it was erased
|
||||
|
@ -474,7 +474,7 @@ void GraphEdit::_top_layer_input(const Ref<InputEvent> &p_ev) {
|
|||
connecting_color = gn->get_connection_input_color(j);
|
||||
connecting_target = false;
|
||||
connecting_to = pos;
|
||||
just_disconected = true;
|
||||
just_disconnected = true;
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -544,7 +544,7 @@ void GraphEdit::_top_layer_input(const Ref<InputEvent> &p_ev) {
|
|||
}
|
||||
emit_signal("connection_request", from, from_slot, to, to_slot);
|
||||
|
||||
} else if (!just_disconected) {
|
||||
} else if (!just_disconnected) {
|
||||
String from = connecting_from;
|
||||
int from_slot = connecting_index;
|
||||
Vector2 ofs = Vector2(mb->get_position().x, mb->get_position().y);
|
||||
|
@ -1368,6 +1368,6 @@ GraphEdit::GraphEdit() {
|
|||
zoom_hb->add_child(snap_amount);
|
||||
|
||||
setting_scroll_ofs = false;
|
||||
just_disconected = false;
|
||||
just_disconnected = false;
|
||||
set_clip_contents(true);
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ private:
|
|||
Vector2 connecting_to;
|
||||
String connecting_target_to;
|
||||
int connecting_target_index;
|
||||
bool just_disconected;
|
||||
bool just_disconnected;
|
||||
|
||||
bool dragging;
|
||||
bool just_selected;
|
||||
|
|
Loading…
Reference in a new issue