Sync changes from upstream repository

This commit is contained in:
Bozo the Builder
2025-05-13 03:53:15 -07:00
parent b2a5e49ef6
commit 2cc3d3b3ed
40 changed files with 1513 additions and 543 deletions

View File

@@ -3888,6 +3888,10 @@ ON_ModelComponentReference ON_ModelComponentReference::CreateConstantSystemCompo
if ( system_model_component.IsSystemComponent())
return CreateForExperts(const_cast<ON_ModelComponent*>(&system_model_component),false);
// If you get this error, first double check and make sure you
// are calling ON::Begin() before you make any other calls
// into opennurbs.
ON_ERROR("Invalid system_model_component parameter.");
return ON_ModelComponentReference::Empty;
}