skip extra newline in .tscn when renaming dependency
This commit is contained in:
parent
242b715144
commit
40ce9bfc2d
@ -838,6 +838,11 @@ Error ResourceLoaderText::rename_dependencies(FileAccess *p_f, const String &p_p
|
|||||||
f->seek(tag_end);
|
f->seek(tag_end);
|
||||||
|
|
||||||
uint8_t c = f->get_8();
|
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()) {
|
while (!f->eof_reached()) {
|
||||||
fw->store_8(c);
|
fw->store_8(c);
|
||||||
c = f->get_8();
|
c = f->get_8();
|
||||||
|
Loading…
Reference in New Issue
Block a user