So, I've been writing some basic LDRaw "unpacker" for some recent time, and have encountered a problem.
I'm really not sure why, but my code for transforming line type 1 makes model fall apart. It handles fine transforming all other line types, but when it comes to 1s everything breaks unless they have identity matrices for their transformations.
Checked everything, but can't find the issue. Can anybody help me with the thing?
Link to the code: https://pastebin.com/tcy91ih2
I'm really not sure why, but my code for transforming line type 1 makes model fall apart. It handles fine transforming all other line types, but when it comes to 1s everything breaks unless they have identity matrices for their transformations.
Checked everything, but can't find the issue. Can anybody help me with the thing?
Link to the code: https://pastebin.com/tcy91ih2