summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-01-24 11:40:19 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-01-24 11:40:19 +0000
commit8d82767ca9ff65622eac487afd6aeba78713add5 (patch)
treedbbc33e0fcdf94c3eefcd443631638a9dc55aea6 /src
parentadded missing header from a merge (diff)
downloadinkscape-8d82767ca9ff65622eac487afd6aeba78713add5.tar.gz
inkscape-8d82767ca9ff65622eac487afd6aeba78713add5.zip
reverting to non wroken branch
(bzr r13708.1.15)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-copy_rotate.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/live_effects/lpe-copy_rotate.cpp b/src/live_effects/lpe-copy_rotate.cpp
index d1022dbc2..3103d8293 100644
--- a/src/live_effects/lpe-copy_rotate.cpp
+++ b/src/live_effects/lpe-copy_rotate.cpp
@@ -192,12 +192,17 @@ LPECopyRotate::split(std::vector<Geom::Path> &path_on,Geom::Path divider){
void
LPECopyRotate::setKaleidoscope(std::vector<Geom::Path> &path_on, Geom::Path divider){
split(path_on,divider);
+ Geom::Affine pre = Geom::Translate(-origin) * Geom::Rotate(-Geom::deg_to_rad(starting_angle));
for (Geom::PathVector::const_iterator path_it = path_on.begin(); path_it != path_on.end(); ++path_it) {
if (path_it->empty()){
continue;
}
for (int i = 0; i < num_copies; ++i) {
-
+ Geom::Rotate rot(-Geom::deg_to_rad(rotation_angle * i));
+ Geom::Affine t = pre * rot * Geom::Translate(origin);
+ Geom::Affine sca(1.0, 0.0, 0.0, -1.0, 0.0, 0.0);
+ Geom::Path append = *path_it * sca * t;
+ path_on.push_back(append);
}
}
}