Style: Apply clang-tidy's readability-braces-around-statements
This commit is contained in:
@ -784,8 +784,9 @@ ScriptInstance *VisualScript::instance_create(Object *p_this) {
|
||||
variables.get_key_list(&keys);
|
||||
|
||||
for (const List<StringName>::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<VisualScript> &p_script, Object *p_o
|
||||
|
||||
StringName var_name;
|
||||
|
||||
if (Object::cast_to<VisualScriptLocalVar>(*node))
|
||||
if (Object::cast_to<VisualScriptLocalVar>(*node)) {
|
||||
var_name = String(Object::cast_to<VisualScriptLocalVar>(*node)->get_var_name()).strip_edges();
|
||||
else
|
||||
} else {
|
||||
var_name = String(Object::cast_to<VisualScriptLocalVarSet>(*node)->get_var_name()).strip_edges();
|
||||
}
|
||||
|
||||
if (!local_var_indices.has(var_name)) {
|
||||
local_var_indices[var_name] = function.max_stack;
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user