mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-14 09:59:09 +03:00
Adapted new findings
This commit is contained in:
+6
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user