1
1

Cleanup: asset catalogs, correct assertion message

There is no such thing as a "relative path" when it comes to asset catalog
paths (they're always absolute).

No functional changes.
This commit is contained in:
2021-09-23 17:31:09 +02:00
parent d7f803f522
commit 93997f9d0a

View File

@@ -271,7 +271,7 @@ std::unique_ptr<AssetCatalogTree> AssetCatalogService::read_into_tree()
AssetCatalogTreeItem::ChildMap *insert_to_map = &tree->children_;
BLI_assert_msg(!ELEM(catalog->path[0], '/', '\\'),
"Malformed catalog path: Path should be formatted like a relative path");
"Malformed catalog path; should not start with a separator");
const char *next_slash_ptr;
/* Looks more complicated than it is, this just iterates over path components. E.g.