Skip to content

Commit c157b27

Browse files
authored
KCL: Close polygon sketch (#9389)
Obviously a polygon profile is closed, but we forgot to set the is_closed property.
1 parent b4b6d7b commit c157b27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/kcl-lib/src/std/shapes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ async fn inner_polygon(
521521
};
522522

523523
sketch.paths.push(current_path);
524+
sketch.is_closed = ProfileClosed::Explicitly;
524525

525526
exec_state
526527
.batch_modeling_cmd(

rust/kcl-lib/tests/kcl_samples/hex-nut-with-chamfer/program_memory.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,7 @@ description: Variables in memory after executing hex-nut-with-chamfer.kcl
889889
},
890890
"artifactId": "[uuid]",
891891
"originalId": "[uuid]",
892-
"units": "mm",
893-
"isClosed": "no"
892+
"units": "mm"
894893
}
895894
},
896895
"holeRadius": {

0 commit comments

Comments
 (0)