skip extra newline in .tscn when renaming dependency
This commit is contained in:
parent
242b715144
commit
40ce9bfc2d
1 changed files with 5 additions and 0 deletions
|
@ -838,6 +838,11 @@ Error ResourceLoaderText::rename_dependencies(FileAccess *p_f, const String &p_p
|
|||
f->seek(tag_end);
|
||||
|
||||
uint8_t c = f->get_8();
|
||||
if (c == '\n' && !f->eof_reached()) {
|
||||
// Skip first newline character since we added one
|
||||
c = f->get_8();
|
||||
}
|
||||
|
||||
while (!f->eof_reached()) {
|
||||
fw->store_8(c);
|
||||
c = f->get_8();
|
||||
|
|
Loading…
Reference in a new issue