I think it would be better to not call ClearPad() at all if pad->Mask is 0. The "true" parameter selects the mask or copper clearance size, not whether or not it draws.
I think it would be better to not call ClearPad() at all if pad->Mask is 0. The "true" parameter selects the mask or copper clearance size, not whether or not it draws.