summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/satellitearray.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-08-26 19:34:58 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-08-26 19:34:58 +0000
commit4b21c95466fd2e108caccafb3feb1d17e5055431 (patch)
treed0c7d9cb7ccebafefbe1b0888518fe3fc6be70fb /src/live_effects/parameter/satellitearray.cpp
parentRemoved cache work :( (diff)
downloadinkscape-4b21c95466fd2e108caccafb3feb1d17e5055431.tar.gz
inkscape-4b21c95466fd2e108caccafb3feb1d17e5055431.zip
add 'little' comment
(bzr r13645.1.114)
Diffstat (limited to 'src/live_effects/parameter/satellitearray.cpp')
-rw-r--r--src/live_effects/parameter/satellitearray.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/live_effects/parameter/satellitearray.cpp b/src/live_effects/parameter/satellitearray.cpp
index 6c3123f12..ab2b9fe2e 100644
--- a/src/live_effects/parameter/satellitearray.cpp
+++ b/src/live_effects/parameter/satellitearray.cpp
@@ -294,6 +294,16 @@ void FilletChamferKnotHolderEntity::knot_set(Geom::Point const &p,
Geom::Piecewise<Geom::D2<Geom::SBasis> > pwd2 = pointwise->getPwd2();
Geom::PathVector pathv = path_from_piecewise(Geom::remove_short_cuts(pwd2,0.01),0.01);
if (_index >= _pparam->_vector.size() ) {
+ //I want to remplace this whith patvectorTime but need a way to know the index of a curve in a pathvector
+ //Geom::Path sat_path = pathv.pathAt(index);
+ //PathTime sat_time = sat_path.nearestTime(pathv.curveAt(index).initialPoint());
+ //boost::optional<size_t> previous_index = boost::none;
+ //if (sat_path.closed() && sat_time.curve_index == 0) {
+ // previous_index = sat_path.size();
+ //} else if(!sat_path.closed() || sat_time.curve_index != 0) {
+ // previous_index = sat_time.curve_index - 1;
+ //}
+ //if (previous_index) {
Geom::Path sat_path = pathv.pathAt(index);
boost::optional<size_t> curve_prev_index = boost::none;
size_t sat_curve_time = Geom::nearest_time(pathv.curveAt(index).initialPoint(),pwd2);