fix for filepath to string conversions

This commit is contained in:
2025-11-11 18:54:57 -05:00
parent 96dd0fbc50
commit 993f92e412
6 changed files with 13 additions and 13 deletions

View File

@@ -71,7 +71,7 @@ namespace anm2ed
{
this->path = !path.empty() ? path : this->path.string();
if (anm2.serialize(this->path, errorString))
if (anm2.serialize(this->path.string(), errorString))
{
toasts.info(std::format("Saved document to: {}", this->path.string()));
clean();
@@ -212,7 +212,7 @@ namespace anm2ed
auto add = [&]()
{
int id{};
if (anm2.spritesheet_add(directory_get(), path, id))
if (anm2.spritesheet_add(directory_get().string(), path, id))
{
anm2::Spritesheet& spritesheet = anm2.content.spritesheets[id];
this->spritesheet.selection = {id};