Commit bd2f852a authored by Alexia Death's avatar Alexia Death

app: make off-canvas changes have effect on brush outline

parent 178af8a8
......@@ -1687,7 +1687,8 @@ gimp_brush_core_eval_transform_dynamics (GimpPaintCore *paint_core,
core->angle = paint_options->brush_angle;
core->aspect_ratio = paint_options->brush_aspect_ratio;
g_return_if_fail (GIMP_IS_DYNAMICS (core->dynamics));
if (!GIMP_IS_DYNAMICS (core->dynamics))
return;
if (GIMP_BRUSH_CORE_GET_CLASS (core)->handles_dynamic_transforming_brush)
{
......
......@@ -207,6 +207,7 @@ gimp_brush_tool_oper_update (GimpTool *tool,
{
GimpBrushTool *brush_tool = GIMP_BRUSH_TOOL (tool);
GimpPaintOptions *paint_options = GIMP_PAINT_TOOL_GET_OPTIONS (tool);
GimpDrawable *drawable = gimp_image_get_active_drawable (gimp_display_get_image (display));
gimp_draw_tool_pause (GIMP_DRAW_TOOL (tool));
......@@ -214,8 +215,7 @@ gimp_brush_tool_oper_update (GimpTool *tool,
proximity, display);
if (! gimp_color_tool_is_enabled (GIMP_COLOR_TOOL (tool)) &&
gimp_image_get_active_drawable (gimp_display_get_image (display)) &&
proximity)
drawable && proximity)
{
GimpPaintTool *paint_tool = GIMP_PAINT_TOOL (tool);
GimpBrushCore *brush_core = GIMP_BRUSH_CORE (paint_tool->core);
......@@ -238,7 +238,7 @@ gimp_brush_tool_oper_update (GimpTool *tool,
if (GIMP_BRUSH_CORE_GET_CLASS (brush_core)->handles_transforming_brush)
{
gimp_brush_core_eval_transform_dynamics (paint_tool->core,
NULL,
drawable,
paint_options,
coords);
}
......@@ -368,6 +368,7 @@ gimp_brush_tool_brush_changed (GimpContext *context,
if (brush_core->main_brush != brush)
gimp_brush_core_set_brush (brush_core, brush);
}
static void
......@@ -386,7 +387,16 @@ gimp_brush_tool_set_brush (GimpBrushCore *brush_core,
GimpBrush *brush,
GimpBrushTool *brush_tool)
{
GimpPaintCore *paint_core = GIMP_PAINT_CORE (brush_core);
gimp_draw_tool_pause (GIMP_DRAW_TOOL (brush_tool));
if (GIMP_BRUSH_CORE_GET_CLASS (brush_core)->handles_transforming_brush)
{
gimp_brush_core_eval_transform_dynamics (paint_core,
NULL,
GIMP_PAINT_TOOL_GET_OPTIONS (brush_tool),
&paint_core->cur_coords);
}
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment