summaryrefslogtreecommitdiffstats
path: root/src/widgets/fill-style.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-10-14 20:24:55 +0000
committerjabiertxof <info@marker.es>2016-10-14 20:24:55 +0000
commit40cd3380a76c79cd09733ae01053750cf731b674 (patch)
treebd33ff51aa43b539a56d339776986aa28835ccab /src/widgets/fill-style.cpp
parentWorking with rotate widget (diff)
parentImplement copying of objects with mesh gradients. (diff)
downloadinkscape-40cd3380a76c79cd09733ae01053750cf731b674.tar.gz
inkscape-40cd3380a76c79cd09733ae01053750cf731b674.zip
Update to trunk
(bzr r15142.1.12)
Diffstat (limited to 'src/widgets/fill-style.cpp')
-rw-r--r--src/widgets/fill-style.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widgets/fill-style.cpp b/src/widgets/fill-style.cpp
index c35519b68..636d892f8 100644
--- a/src/widgets/fill-style.cpp
+++ b/src/widgets/fill-style.cpp
@@ -37,6 +37,7 @@
#include "gradient-chemistry.h"
#include "inkscape.h"
#include "sp-linear-gradient.h"
+#include "sp-mesh-gradient.h"
#include "sp-pattern.h"
#include "sp-radial-gradient.h"
#include "style.h"
@@ -295,6 +296,14 @@ void FillNStroke::performUpdate()
SPRadialGradient *rg = SP_RADIALGRADIENT(server);
psel->setGradientProperties( rg->getUnits(),
rg->getSpread() );
+#ifdef WITH_MESH
+ } else if (SP_IS_MESHGRADIENT(server)) {
+ SPGradient *array = SP_MESHGRADIENT(server)->getArray();
+ psel->setGradientMesh( array );
+
+ SPMeshGradient *mg = SP_MESHGRADIENT(server);
+ psel->setMeshProperties( mg->getUnits() );
+#endif
} else if (SP_IS_PATTERN(server)) {
SPPattern *pat = SP_PATTERN(server)->rootPattern();
psel->updatePatternList( pat );