Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions core/compiler/src/gds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ impl CompiledData {
let mut ocell = GdsStruct::new(name.to_string());
for (_, obj) in &cell.objects {
match obj {
SolvedValue::Rect(rect) => {
if rect.construction {
continue;
}
SolvedValue::Rect(rect) if !rect.construction => {
if let Some(layer) = &rect.layer {
let GdsLayerSpec {
layer,
Expand Down Expand Up @@ -148,7 +145,7 @@ impl CompiledData {
..Default::default()
}));
}
SolvedValue::Instance(i) => {
SolvedValue::Instance(i) if !i.construction => {
if exporter.names.name(&i.cell).is_none() {
self.cell_to_gds(exporter, i.cell)?;
}
Expand Down
3 changes: 3 additions & 0 deletions core/gui/src/editor/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ impl Element for CanvasElement {
}
}
SolvedValue::Instance(inst) => {
if inst.construction {
continue;
}
let mut inst_mat = TransformationMatrix::identity();
if inst.reflect {
inst_mat = inst_mat.reflect_vert()
Expand Down
Loading