Keep path's custom informations after a boolean operation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Undecided
|
Unassigned |
Bug Description
hye,
i'm the inksmoto main developper (xmoto level editor which is an inkscape
extension
look at that to see the different possibilities:
http://
Xmoto is a gpl game:
http://
some times ago, Ted Gould told me that:
"What I would recommend for this is add a custom X-moto namespace on the XML file.
Inkscape will honor this, and keep it in the file. So something like this:
<path d="M 1 1 M 2 2 M 3 3 z" xmoto:vertex-
Where 'r' and 'g' mean something about the vertexes of the path."
So i add some path information in my own xmoto namespace:
<path
ns0:xmoto_
id="rect2388"
d="M 314.29911,415.20982 L 314.29911,98.084821 L 128.58036,
128.58036,415.20982 L 314.29911,415.20982 z"
style="
/>
with the namespace definition:
<svg
xmlns:ns0="http://
(the name ns0 is automatically choosen by lxml)
But, when i do a boolean operation on this path, my ns0:xmoto_label
disapeared in the new paths created after the boolean operation...
<path
style="
d="M 575.875 242.375 L 390.125 242.375 L 390.125 423.9375 L 575.875
423.9375 L 575.875 242.375 z "
id="path3184" />
<path
style="
d="M 390.125 106.8125 L 390.125 242.375 L 575.875 242.375 L 575.875
106.8125 L 390.125 106.8125 z "
id="path3179" />
i've tried with both inkscape 0.45.1 and 0.46 svn from yesterday and the
behaviour is the same...
there's a bug that prevent keeping my informations after a boolean operation.
(i've also tried putting my informations into inkscape:label, but it's
dropped too after a boolean operation)
Here is a response by bbyak from the forum about it:
The reason is that boolops create new paths and don't know that they need to copy over all the attributes of the old paths. It should not be too difficult to fix, if you want to look into it try src/splivarot.cpp where all boolops are.
tags: | added: svg |
tags: | added: boolops |
Changed in inkscape: | |
assignee: | MenTaLguY (mental) → nobody |
status: | Incomplete → Triaged |
Ted, could you take a look at this one?