mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-11 18:45:57 +08:00
Sync changes from upstream repository
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user