Index: obj_subc.h =================================================================== --- obj_subc.h (revision 28116) +++ obj_subc.h (revision 28117) @@ -52,6 +52,8 @@ pcb_line_t *aux_cache[PCB_SUBCH_max]; pcb_layer_t *aux_layer; const char *refdes; /* cached from attributes for fast lookup */ + int part_changed_inhibit; + unsigned part_changed_bbox_dirty:1; /* part_changed_inhibit_dec() should recalculate the bbox */ gdl_elem_t link; }; @@ -149,7 +151,10 @@ /* Update the subcircuit (e.g. bbox) after a part of the subcircuit has changed */ void pcb_subc_part_changed_(pcb_any_obj_t *obj); #define pcb_subc_part_changed(obj) pcb_subc_part_changed_((pcb_any_obj_t *)obj) +void pcb_subc_part_changed_inhibit_inc(pcb_subc_t *sc); +void pcb_subc_part_changed_inhibit_dec(pcb_subc_t *sc); + /*** subc creation helpers ***/ /* Create the aux layer for a subc, set origin to ox;oy and rotation to rot */