kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #31176
Re: [FEATURE] Add keepout areas in footprints
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Thu, 19 Oct 2017 12:55:51 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.46) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
In-reply-to:
<4f45d7b6-e59f-e769-5ac8-d9416472f50e@wanadoo.fr>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
On 10/19/2017 11:31 AM, jp charras wrote:
> Le 18/10/2017 à 16:57, Oliver Walters a écrit :
>> JP,
>>
>> Fantastic, you have worked your magic! That works much better in pcbnew now, the undo/redo is
>> working well.
>>
>> However, I still see that undo/redo for zone editing is broken in modedit.
>>
>> Oliver
>>
>
> Yes, because when an item belonging a footprint is modified, the footprint itself must be stored in
> undo/redo stack.
>
> In other words:
> commit.Modify( zone );
> works only for a zone belonging the board.
>
> for a zone belonging a footprint,
> commit.Modify( footprint);
> must be used.
>
> So, verify the zones added to a footprint has this footprint as parent,
> and save the parent if a zone has a parent MODULE.
I have not checked it yet, but I suppose it should be possible to modify
the BOARD_COMMIT class to automagically create a copy of a whole
footprint when used in the footprint editor. This would allow us to
write more generic code and remove the confusion.
Regards,
Orson
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups
References