mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 21:26:01 +08:00
Follow-up of 9b5edbfa5fdb9eed4fd3e602b75d1ed353778eda -> added comments
This commit is contained in:
parent
d954a70bbf
commit
a30c35d240
@ -159,6 +159,11 @@ static bool obj_parseline(const char *line, ObjData &data)
|
|||||||
line = endptr;
|
line = endptr;
|
||||||
EATWS();
|
EATWS();
|
||||||
}
|
}
|
||||||
|
// the following check is commented out because there may be obj files containing extra data, as those generated by Meshlab,
|
||||||
|
// see https://dev.prusa3d.com/browse/SPE-1019 for an example,
|
||||||
|
// and this would lead to a crash because no vertex would be stored
|
||||||
|
// if (*line != 0)
|
||||||
|
// return false;
|
||||||
data.coordinates.push_back((float)x);
|
data.coordinates.push_back((float)x);
|
||||||
data.coordinates.push_back((float)y);
|
data.coordinates.push_back((float)y);
|
||||||
data.coordinates.push_back((float)z);
|
data.coordinates.push_back((float)z);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user