Skip to content

Commit

Permalink
Add artifact ID to Face
Browse files Browse the repository at this point in the history
  • Loading branch information
jtran committed Jan 31, 2025
1 parent 1f16c85 commit fe3241e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wasm-lib/kcl/src/execution/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,8 @@ pub struct DefaultPlanes {
pub struct Face {
/// The id of the face.
pub id: uuid::Uuid,
/// The artifact ID.
pub artifact_id: ArtifactId,
/// The tag of the face.
pub value: String,
/// What should the face’s X axis be?
Expand Down
1 change: 1 addition & 0 deletions src/wasm-lib/kcl/src/std/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ async fn start_sketch_on_face(

Ok(Box::new(Face {
id: extrude_plane_id,
artifact_id: extrude_plane_id.into(),
value: tag.to_string(),
// TODO: get this from the extrude plane data.
x_axis: solid.sketch.on.x_axis(),
Expand Down

0 comments on commit fe3241e

Please sign in to comment.