diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-12-02 09:15:24 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-12-02 09:15:24 +0000 |
| commit | c0895d809dfa89df7242e9bdc838755ed63c9218 (patch) | |
| tree | 8f98cb4d99cf77c08d356d6c16f95fb8328d1c7e /src/ui/tools/mesh-tool.cpp | |
| parent | Add toggles for handle visibility, editing fill, and editing stroke. (diff) | |
| download | inkscape-c0895d809dfa89df7242e9bdc838755ed63c9218.tar.gz inkscape-c0895d809dfa89df7242e9bdc838755ed63c9218.zip | |
Ensure new mesh is immediately editable.
(bzr r15290)
Diffstat (limited to 'src/ui/tools/mesh-tool.cpp')
| -rw-r--r-- | src/ui/tools/mesh-tool.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/tools/mesh-tool.cpp b/src/ui/tools/mesh-tool.cpp index b05caf43a..e628094d9 100644 --- a/src/ui/tools/mesh-tool.cpp +++ b/src/ui/tools/mesh-tool.cpp @@ -1136,6 +1136,16 @@ static void sp_mesh_new_default(MeshTool &rc) { (prefs->getInt("/tools/gradient/newfillorstroke", 1) != 0) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE; + // Ensure mesh is immediately editable. + // Editting both fill and stroke at same time doesn't work well so avoid. + if (fill_or_stroke == Inkscape::FOR_FILL) { + prefs->setBool("/tools/mesh/edit_fill", true ); + prefs->setBool("/tools/mesh/edit_stroke", false); + } else { + prefs->setBool("/tools/mesh/edit_fill", false); + prefs->setBool("/tools/mesh/edit_stroke", true ); + } + // HACK: reset fill-opacity - that 0.75 is annoying; BUT remove this when we have an opacity slider for all tabs SPCSSAttr *css = sp_repr_css_attr_new(); sp_repr_css_set_property(css, "fill-opacity", "1.0"); |
