More debugging

This commit is contained in:
jordan4ibanez 2023-11-28 07:35:48 -05:00
parent e32f3d8f21
commit 970915669f
1 changed files with 2 additions and 1 deletions

View File

@ -255,8 +255,9 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::readChunkTEXS() {
// Convert Windows '\' to Posix '/'.
B3DTexture.TextureName.replace('\\','/');
println(B3DTexture.TextureName.c_str());
} else {
if (t.contains("name") && !t["name"].is_string()) {
return {false, "\"name\" in TEXS block index (" + std::to_string(index) +") is not a string."};
}