I wanted to look at this parser and cleanup the code a bit, but turns out I also found a bug:
sometimes, there are trailing spaces after "OD -", which the parser considered different as just a dash, causing the data from the previous material to be copied to that one.
A similar problem occurs with a comment.
The concerned materials are the following:
Hello,
I wanted to look at this parser and cleanup the code a bit, but turns out I also found a bug: sometimes, there are trailing spaces after "OD -", which the parser considered different as just a dash, causing the data from the previous material to be copied to that one. A similar problem occurs with a comment. The concerned materials are the following:
P-LASF50 (line 2798) P-SF69 (line 2901) P-SK58 (line 2990) P-LAF37 (line 2707) P-LAF32 (line 4071)
Therefore, the values removed below are in fact copies of data from other materials.
This pull request cleans the code and fixes this bug.