Comment 3 for bug 1246550

Revision history for this message
Jabiertxof (jabiertxof) wrote :

~suv thanks for your test.

1.- Solved in this V2 patch

2.- Knots remove the control of the nodetool while clicking-dragging and need drag outside the knot to hook nodetool events, for that i made a function callable from live_effects and path parameters to update it on knot move. I put the refactor and a example of use in the branch lattice2, exactly in live_effects/paramenters/pointreseteable.cpp:

Lattice 2: https://code.launchpad.net/~jabiertxof/inkscape/lattice2

Example of code in a custom point pathparameter:

void
PointReseteableParam::param_setValue(Geom::Point newpoint)
{
    *dynamic_cast<Geom::Point *>( this ) = newpoint;
    SPDesktop* desktop = SP_ACTIVE_DESKTOP;
    if (tools_isactive( desktop, TOOLS_NODES)) {
        InkNodeTool *nt = static_cast<InkNodeTool*>( desktop->event_context);
        nt->update_helperpath();
    }
}