This commit is contained in:
jordan4ibanez 2023-11-28 08:42:06 -05:00
parent da18594daf
commit 77b0021dd9

View File

@ -250,6 +250,9 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::readChunkBRUS() {
Materials.push_back(SB3dMaterial()); Materials.push_back(SB3dMaterial());
SB3dMaterial& B3DMaterial = Materials.getLast(); SB3dMaterial& B3DMaterial = Materials.getLast();
// This part should probably be it's own function.
//todo: look into making this it's own function.
//* Red. //* Red.
if (b.contains("red") && b["red"].is_number()) { if (b.contains("red") && b["red"].is_number()) {
B3DMaterial.red = b["red"]; B3DMaterial.red = b["red"];