diff --git a/visual_script.cpp b/visual_script.cpp index 3fe0b92..6d5fff8 100644 --- a/visual_script.cpp +++ b/visual_script.cpp @@ -784,8 +784,9 @@ ScriptInstance *VisualScript::instance_create(Object *p_this) { variables.get_key_list(&keys); for (const List::Element *E = keys.front(); E; E = E->next()) { - if (!variables[E->get()]._export) + if (!variables[E->get()]._export) { continue; + } PropertyInfo p = variables[E->get()].info; p.name = String(E->get()); @@ -2085,10 +2086,11 @@ void VisualScriptInstance::create(const Ref &p_script, Object *p_o StringName var_name; - if (Object::cast_to(*node)) + if (Object::cast_to(*node)) { var_name = String(Object::cast_to(*node)->get_var_name()).strip_edges(); - else + } else { var_name = String(Object::cast_to(*node)->get_var_name()).strip_edges(); + } if (!local_var_indices.has(var_name)) { local_var_indices[var_name] = function.max_stack; diff --git a/visual_script_editor.cpp b/visual_script_editor.cpp index 4cc238e..3cdf607 100644 --- a/visual_script_editor.cpp +++ b/visual_script_editor.cpp @@ -3017,9 +3017,9 @@ void VisualScriptEditor::_graph_connect_to_empty(const String &p_from, int p_fro if (!vsn.is_valid()) { return; } - if (vsn->get_output_value_port_count()) - + if (vsn->get_output_value_port_count()) { port_action_pos = p_release_pos; + } if (p_from_slot < vsn->get_output_sequence_port_count()) { port_action_node = p_from.to_int();