Merge pull request #17602 from ivodopiviz/tscn-issues

Removed unnecessary newlines from tscn
This commit is contained in:
Juan Linietsky 2018-04-07 16:59:12 -03:00 committed by GitHub
commit 14340efa3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 9 deletions

View File

@ -1672,7 +1672,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r
f->store_string(vars);
}
f->store_line("]\n");
f->store_line("]");
for (int j = 0; j < state->get_node_property_count(i); j++) {
@ -1682,11 +1682,8 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r
f->store_string(_valprop(String(state->get_node_property_name(i, j))) + " = " + vars + "\n");
}
if (state->get_node_property_count(i)) {
//add space
f->store_line(String());
}
}
for (int i = 0; i < state->get_connection_count(); i++) {
@ -1708,14 +1705,12 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const RES &p_r
f->store_string(" binds= " + vars);
}
f->store_line("]\n");
f->store_line("]");
}
f->store_line(String());
Vector<NodePath> editable_instances = state->get_editable_instances();
for (int i = 0; i < editable_instances.size(); i++) {
f->store_line("[editable path=\"" + editable_instances[i].operator String() + "\"]");
f->store_line("\n[editable path=\"" + editable_instances[i].operator String() + "\"]");
}
}