Adapted new findings

This commit is contained in:
korenkonder
2024-11-29 20:47:56 +03:00
parent 61bbd934a2
commit 720f7ec906
15 changed files with 358 additions and 254 deletions
+6 -4
View File
@@ -1100,14 +1100,16 @@ void object_material_msgpack_read(const char* path, const char* set_name,
msgpack* attrib = _sub_mesh.read("attrib");
if (attrib) {
msgpack* recieve_shadow = attrib->read("recieve_shadow");
msgpack* cast_shadow = attrib->read("cast_shadow");
msgpack* transparent = attrib->read("transparent");
if (recieve_shadow)
sub_mesh.attrib.m.recieve_shadow = recieve_shadow->read_bool();
msgpack* cast_shadow = attrib->read("cast_shadow");
if (cast_shadow)
sub_mesh.attrib.m.cast_shadow = cast_shadow->read_bool();
if (transparent)
sub_mesh.attrib.m.transparent = transparent->read_bool();
msgpack* translucent = attrib->read("translucent");
if (translucent)
sub_mesh.attrib.m.translucent = translucent->read_bool();
}
}
break;