Sync changes from upstream repository

Co-authored-by: Andrew Le Bihan <andy@mcneel.com>
Co-authored-by: Bozo <bozo@mcneel.com>
Co-authored-by: croudyj <croudyj@gmail.com>
Co-authored-by: Curtis Wensley <curtis.wensley@gmail.com>
Co-authored-by: Dale Lear <dalelear@mcneel.com>
Co-authored-by: David Eränen <david.eranen@mcneel.com>
Co-authored-by: Joshua Kennedy <joshuakennedy102@gmail.com>
Co-authored-by: Jussi Aaltonen <jussi@mcneel.com>
Co-authored-by: Luis E. Fraguada <luis@mcneel.com>
Co-authored-by: Mathias Fuchs <mathias@mcneel.com>
Co-authored-by: piac <giulio@mcneel.com>
Co-authored-by: Steve Baer <steve@mcneel.com>
Co-authored-by: Tim Hemmelman <tim@mcneel.com>
This commit is contained in:
Bozo the Builder
2024-04-03 06:06:59 -07:00
parent 527efdcc8e
commit c9282b84b2
22 changed files with 3073 additions and 67 deletions

View File

@@ -186,7 +186,7 @@ ON_LineCurve::SwapCoordinates( int i, int j )
bool ON_LineCurve::IsValid( ON_TextLog* text_log ) const
{
return ( m_t[0] < m_t[1] && !m_line.from.IsCoincident(m_line.to) ) ? true : false;
return (m_line.IsValid() && m_t[0] < m_t[1] && !m_line.from.IsCoincident(m_line.to) ) ? true : false;
}
void ON_LineCurve::Dump( ON_TextLog& dump ) const