Fix segfault when appending an ExtrusionPath::Collection to another Collection
This commit is contained in:
parent
dd70f6be2f
commit
1741301973
@ -56,7 +56,7 @@ ExtrusionEntityCollection::append(...)
|
||||
} else if (ExtrusionLoop* loop = dynamic_cast<ExtrusionLoop*>(entity)) {
|
||||
THIS->entities.push_back( new ExtrusionLoop(*loop) );
|
||||
} else {
|
||||
THIS->entities.push_back( new ExtrusionEntityCollection(*(ExtrusionEntityCollection*)entity) );
|
||||
THIS->entities.push_back( (*(ExtrusionEntityCollection*)entity).clone() );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user