diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-19 01:47:56 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-19 01:47:56 +0000 |
| commit | 4c790c63b7918e2745420c082bfa13e69cec74bd (patch) | |
| tree | cff968e9d1dbc6e78960d6eb5b160baf71e4861a /src/ui/tools/freehand-base.cpp | |
| parent | Merge branch 'master' into powerpencilII (diff) | |
| download | inkscape-4c790c63b7918e2745420c082bfa13e69cec74bd.tar.gz inkscape-4c790c63b7918e2745420c082bfa13e69cec74bd.zip | |
Working on fix smooth draw
Diffstat (limited to 'src/ui/tools/freehand-base.cpp')
| -rw-r--r-- | src/ui/tools/freehand-base.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/tools/freehand-base.cpp b/src/ui/tools/freehand-base.cpp index bff24346a..ae91f1f8b 100644 --- a/src/ui/tools/freehand-base.cpp +++ b/src/ui/tools/freehand-base.cpp @@ -258,6 +258,9 @@ static void spdc_apply_powerstroke_shape(std::vector<Geom::Point> points, Freeha } Effect::createAndApply(POWERSTROKE, dc->desktop->doc(), item); Effect* lpe = SP_LPE_ITEM(item)->getCurrentLPE(); + lpe->getRepr()->setAttribute("sort_points", "true"); + lpe->getRepr()->setAttribute("interpolator_type", "CentripetalCatmullRom"); + lpe->getRepr()->setAttribute("linejoin_type", "round"); static_cast<LPEPowerStroke*>(lpe)->offset_points.param_set_and_write_new_value(pt->points); pt->points.clear(); return; |
