summaryrefslogtreecommitdiff
path: root/kicad/pl-render.c
diff options
context:
space:
mode:
Diffstat (limited to 'kicad/pl-render.c')
-rw-r--r--kicad/pl-render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index 8f4b940..592ced4 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -251,5 +251,7 @@ void pl_render(struct pl_ctx *pl, struct gfx *gfx, const struct sheet *sheets,
return;
for (obj = pl->objs; obj; obj = obj->next)
for (i = 0; i != obj->repeat; i++)
- render_obj(pl, obj, gfx, i, sheets, sheet);
+ if (obj->pc == pc_none ||
+ (obj->pc == pc_only_one) == (sheets == sheet))
+ render_obj(pl, obj, gfx, i, sheets, sheet);
}