Import: C++ DXF importer wrongly scaled polyline bulges

Fixes #13600.
This commit is contained in:
Roy-043
2024-04-27 10:51:21 +02:00
committed by Yorik van Havre
parent c4569561f5
commit c02df6a5fb

View File

@@ -2162,7 +2162,7 @@ bool CDxfRead::ReadLwPolyLine()
// In the latter case the stroke attributes apply to the closure stroke (if any) which ends at
// the first vertex.
Setup3DVectorAttribute(ePrimaryPoint, currentVertex.location);
SetupScaledDoubleAttribute(eFloat3, currentVertex.bulge);
SetupValueAttribute(eFloat3, currentVertex.bulge);
SetupValueAttribute(eInteger1, flags);
while (get_next_record() && m_record_type != eObjectType) {
if ((m_record_type == ePrimaryPoint + eXOffset && have_x)
@@ -2208,7 +2208,7 @@ bool CDxfRead::ReadPolyLine()
// To avoid eating and discarding the rest of the entieies if ENDSEQ is missing,
// we quit on any unknown type-0 record.
Setup3DVectorAttribute(ePrimaryPoint, currentVertex.location);
SetupScaledDoubleAttribute(eFloat3, currentVertex.bulge);
SetupValueAttribute(eFloat3, currentVertex.bulge);
while (get_next_record() && m_record_type == eObjectType && IsObjectName("VERTEX")) {
// Set vertex defaults
currentVertex.location = Base::Vector3d();