app: remove code in draw() that special cases drawing vs. undrawing
GimpDrawTool::draw() is not used for undrawing any longer.
This commit is contained in:
parent
313f8bee1e
commit
7a6a57c42f
1 changed files with 6 additions and 12 deletions
|
|
@ -306,17 +306,11 @@ gimp_brush_tool_draw_brush (GimpBrushTool *brush_tool,
|
|||
brush_core = GIMP_BRUSH_CORE (GIMP_PAINT_TOOL (brush_tool)->core);
|
||||
options = GIMP_PAINT_TOOL_GET_OPTIONS (brush_tool);
|
||||
|
||||
/* don't create the segments for the purpose of undrawing (if we
|
||||
* don't have the segments, we can hardly have drawn them before)
|
||||
*/
|
||||
if (! brush_core->brush_bound_segs && brush_core->main_brush &&
|
||||
! gimp_draw_tool_is_drawn (draw_tool))
|
||||
{
|
||||
gimp_brush_core_create_bound_segs (brush_core, options);
|
||||
}
|
||||
if (! brush_core->brush_bound_segs && brush_core->main_brush)
|
||||
gimp_brush_core_create_bound_segs (brush_core, options);
|
||||
|
||||
if (brush_core->brush_bound_segs)
|
||||
gimp_brush_core_transform_bound_segs (brush_core, options);
|
||||
gimp_brush_core_transform_bound_segs (brush_core, options);
|
||||
|
||||
if (brush_core->transformed_brush_bound_segs)
|
||||
{
|
||||
|
|
@ -370,9 +364,9 @@ gimp_brush_tool_brush_changed (GimpContext *context,
|
|||
}
|
||||
|
||||
static void
|
||||
gimp_brush_tool_brush_transformed (GimpPaintOptions *options,
|
||||
GParamSpec *pspec,
|
||||
GimpBrushTool *brush_tool)
|
||||
gimp_brush_tool_brush_transformed (GimpPaintOptions *options,
|
||||
GParamSpec *pspec,
|
||||
GimpBrushTool *brush_tool)
|
||||
{
|
||||
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (brush_tool);
|
||||
GimpBrushCore *brush_core = GIMP_BRUSH_CORE (paint_tool->core);
|
||||
|
|
|
|||
Loading…
Reference in a new issue