Sync changes from upstream repository

This commit is contained in:
Bozo the Builder
2025-08-12 12:33:07 -07:00
parent 93bb2eb34a
commit 1adcb1b632
28 changed files with 744 additions and 288 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;
}