Skip to content

Commit 7038266

Browse files
ruevsphkahler
authored andcommitted
Do not include construction images in extrude/lathe/revolve/helix
To avoid unnecessary/annoying copies of images added in 2d sketches if they are marked "construction" they will not be copied when creating solids. Fixes: solvespace#1418
1 parent e7c0c16 commit 7038266

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/group.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,11 @@ void Group::CopyEntity(IdList<Entity,hEntity> *el,
11801180
break;
11811181

11821182
default: {
1183+
if((Entity::Type::IMAGE == ep->type) && (true == ep->construction)) {
1184+
// Do not copy image entities if they are construction.
1185+
return;
1186+
}
1187+
11831188
int i, points;
11841189
bool hasNormal, hasDistance;
11851190
EntReqTable::GetEntityInfo(ep->type, ep->extraPoints,

0 commit comments

Comments
 (0)