Sync changes from upstream repository

This commit is contained in:
Bozo the Builder
2025-08-12 12:41:00 -07:00
parent 93bb2eb34a
commit 2447ac5cdf
34 changed files with 766 additions and 293 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;
}