diff --git a/xs/xsp/ExtrusionEntityCollection.xsp b/xs/xsp/ExtrusionEntityCollection.xsp index 19c84914c..90adaf3dc 100644 --- a/xs/xsp/ExtrusionEntityCollection.xsp +++ b/xs/xsp/ExtrusionEntityCollection.xsp @@ -56,7 +56,7 @@ ExtrusionEntityCollection::append(...) } else if (ExtrusionLoop* loop = dynamic_cast(entity)) { THIS->entities.push_back( new ExtrusionLoop(*loop) ); } else { - THIS->entities.push_back( new ExtrusionEntityCollection(*(ExtrusionEntityCollection*)entity) ); + THIS->entities.push_back( (*(ExtrusionEntityCollection*)entity).clone() ); } }