Skip to content

Commit

Permalink
Import: C++ DXF importer wrongly scaled polyline bulges
Browse files Browse the repository at this point in the history
Fixes #13600.
  • Loading branch information
Roy-043 authored and yorikvanhavre committed Apr 29, 2024
1 parent c456956 commit c02df6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Import/App/dxf/dxf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c02df6a

Please sign in to comment.