You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
-fixed a quite serious scene corruption bug when saving that has been around for months.
good thing no one ran into it :P
This commit is contained in:
@@ -2172,10 +2172,11 @@ Error ResourceFormatSaverBinaryInstance::save(const String &p_path,const RES& p_
|
|||||||
|
|
||||||
save_unicode_string("local://"+itos(r->get_subindex()));
|
save_unicode_string("local://"+itos(r->get_subindex()));
|
||||||
if (takeover_paths) {
|
if (takeover_paths) {
|
||||||
r->set_path(p_path+"::"+itos(ofs_pos.size()),true);
|
r->set_path(p_path+"::"+itos(r->get_subindex()),true);
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
save_unicode_string(r->get_path()); //actual external
|
save_unicode_string(r->get_path()); //actual external
|
||||||
|
}
|
||||||
ofs_pos.push_back(f->get_pos());
|
ofs_pos.push_back(f->get_pos());
|
||||||
f->store_64(0); //offset in 64 bits
|
f->store_64(0); //offset in 64 bits
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user