types: skip TLV checks on lights

main
q3k 2022-04-15 15:28:04 +00:00
parent d8bb1fe7d9
commit 73f6caaf48
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ impl gmi::Serializable for Object {
let (res, check) = match (tlv.tag, tlv.flags) {
(2, 4) => (Object::Geometry(r.read("geometry")?), false),
(4, 2) => (Object::Camera(r.read("camera")?), false),
(5, 3) => (Object::Light(r.read("light")?), true),
(5, 3) => (Object::Light(r.read("light")?), false),
(21, 2) => (Object::AttachmentPoint(r.read("attachmentpoint")?), true),
(30, 2) => (Object::Simulation(r.read("simulation")?), false),
(31, 4) => (Object::RBCollection(r.read("rigidbodycollection")?), true),