Sync changes from upstream repository

This commit is contained in:
Bozo the Builder
2023-07-14 02:54:08 -07:00
parent 594e02b6ce
commit f5a493ce7c
14 changed files with 329 additions and 190 deletions

View File

@@ -3947,7 +3947,10 @@ void ON_XMLUserData::SetToDefaultsImpl(int) const
bool ON_XMLUserData::Archive(void) const
{
return true;
// 12th July 2023 John Croudy, https://mcneel.myjetbrains.com/youtrack/issue/RH-75697
// We only want to archive the user data if there's something useful in the XML. For there
// to be something useful in the XML, the root node must have at least one child node.
return _private->m_XMLRoot.ChildCount() > 0;
}
bool ON_XMLUserData::Read(ON_BinaryArchive& archive)