Thread Previous • Date Previous • Date Next • Thread Next |
Are you no longer using the pi.Load() function to append the items from the clipboard? From where I am looking it looks this way. This is good. Same thing I did in my branch, but your implementation is cleaner.
Although, I think I get the problem with netcode propagation. I cannot seem to find that you are adding the new nets that are transfered. Since I cannot test, I suspect that this will cause segfaults when copying between boards with different number/names of nets. I tested this by copying from one of the beaglebone projects into the complex-hierarchy.
Allinall from what I can see, this is a cleaner implemenentation of what I did, I wish I had written it :D If you merge this into master, I can submit a patch for the netcode propagation I am using, or you can do it, doesnt really matter to me.
I Will test it when I get the time! Either during the weekend or some evening here.
- Kristoffer On 09/25/2017 11:46 AM, Tomasz Wlostowski wrote:
On 25.09.2017 10:03, Kristoffer Ödmark wrote:Maybe I could get access to the work you have done and cherry pick patches from there, or just test it and see the difference?Hi, Sorry, I totally forgot to send you the link: https://github.com/twlostow/kicad-dev/tree/tom-copypasta Tom- Kristoffer On 09/25/2017 01:15 AM, Kristoffer Ödmark wrote:On 09/25/2017 12:21 AM, Tomasz Wlostowski wrote:Hi Kristoffer, I've had some time to work on your code during the past few days (I wasn't aware you're still improving it). I fixed the crashes, refactored placement of pasted items, fixed the zone refill issue, added snapping to item's anchors and selection of a reference point.I was not sure that I would find time to improve the code myself. I fixed the crashes, and refactored the placement, and fixed the zone-refill aswell. The adding of a reference point I assume are all on the copy-side of the code, I have not changed that one in a while so that could be merged to either one of our branchesThe only outstanding bug I'm aware of is with net code propagation (not updated after pasting items).I am not sure what you mean here? I add all the nets that are not existing on the current board and that are used by the imported items, I add them as new nets on the current board ( by creating a NETINFO_ITEM with -1 as netcode and adding it ) pcbnew_control.cpp:847-860 in my branch for an example of how. And it seems to work.How do you want to proceed with this? I'd like to merge the copy&paste feature as soon as possible.I would also like the functionality merged as soon as possible and although it is unfortunate that we have now done some duplicate work, it seems you have made some more improvements than me. Merge what you seem fit.Best, Tom
-- -Kristoffer
Thread Previous • Date Previous • Date Next • Thread Next |