skip extra newline in .tscn when renaming dependency
(cherry picked from commit 40ce9bfc2d
)
This commit is contained in:
parent
4bf141a47e
commit
3c5fb3bbc7
1 changed files with 5 additions and 0 deletions
|
@ -800,6 +800,11 @@ Error ResourceInteractiveLoaderText::rename_dependencies(FileAccess *p_f, const
|
||||||
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 a new issue