diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-01-11 13:47:09 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-01-11 13:47:09 +0000 |
| commit | d53bf0753e35af93589afd8601f3225a305c9b0a (patch) | |
| tree | 883e6cb93c451b9204d3d667d4ea5c2f203f77c9 /src/tweak-context.cpp | |
| parent | Add missing selection cue option to preferences for tweak, calligraphy, and p... (diff) | |
| download | inkscape-d53bf0753e35af93589afd8601f3225a305c9b0a.tar.gz inkscape-d53bf0753e35af93589afd8601f3225a305c9b0a.zip | |
Retain the 3D box attribute when doing a color tweak only (so that the box can be further edited in 3D box context)
(bzr r4458)
Diffstat (limited to 'src/tweak-context.cpp')
| -rw-r--r-- | src/tweak-context.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp index 09e13f1fc..736ebf2eb 100644 --- a/src/tweak-context.cpp +++ b/src/tweak-context.cpp @@ -337,6 +337,12 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, NR::Poi { bool did = false; + if (SP_IS_BOX3D(item)) { + // convert 3D boxes to ordinary groups before tweaking their shapes + item = SP_ITEM(box3d_convert_to_group(SP_BOX3D(item))); + selection->add(item); + } + if (SP_IS_GROUP(item)) { for (SPObject *child = sp_object_first_child(SP_OBJECT(item)) ; child != NULL; child = SP_OBJECT_NEXT(child) ) { if (SP_IS_ITEM(child)) { @@ -844,12 +850,6 @@ sp_tweak_dilate (SPTweakContext *tc, NR::Point event_p, NR::Point p, NR::Point v SPItem *item = (SPItem *) items->data; - if (SP_IS_BOX3D(item)) { - // convert 3D boxes to ordinary groups before tweaking their shapes - item = SP_ITEM(box3d_convert_to_group(SP_BOX3D(item))); - selection->add(item); - } - if (tc->mode == TWEAK_MODE_COLORPAINT || tc->mode == TWEAK_MODE_COLORJITTER) { if (do_fill || do_stroke || do_opacity) { if (sp_tweak_color_recursive (tc->mode, item, item_at_point, |
