invert the matrix for direction == GIMP_TRANSFORM_BACKWARD. Fixes
2003-07-16 Michael Natterer <mitch@gimp.org> * app/vectors/gimpvectors.c (gimp_vectors_transform): invert the matrix for direction == GIMP_TRANSFORM_BACKWARD. Fixes corrective transformation of paths.
This commit is contained in:

committed by
Michael Natterer

parent
30e041cd79
commit
db2b23f1aa
@ -1,3 +1,9 @@
|
|||||||
|
2003-07-16 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/vectors/gimpvectors.c (gimp_vectors_transform): invert the
|
||||||
|
matrix for direction == GIMP_TRANSFORM_BACKWARD. Fixes corrective
|
||||||
|
transformation of paths.
|
||||||
|
|
||||||
2003-07-16 Michael Natterer <mitch@gimp.org>
|
2003-07-16 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/tools/gimppainttool.c (gimp_paint_tool_draw): add a small
|
* app/tools/gimppainttool.c (gimp_paint_tool_draw): add a small
|
||||||
|
@ -503,6 +503,7 @@ gimp_vectors_transform (GimpItem *item,
|
|||||||
gpointer progress_data)
|
gpointer progress_data)
|
||||||
{
|
{
|
||||||
GimpVectors *vectors;
|
GimpVectors *vectors;
|
||||||
|
GimpMatrix3 local_matrix;
|
||||||
GList *list;
|
GList *list;
|
||||||
|
|
||||||
vectors = GIMP_VECTORS (item);
|
vectors = GIMP_VECTORS (item);
|
||||||
@ -513,6 +514,11 @@ gimp_vectors_transform (GimpItem *item,
|
|||||||
_("Transform Path"),
|
_("Transform Path"),
|
||||||
vectors);
|
vectors);
|
||||||
|
|
||||||
|
local_matrix = *matrix;
|
||||||
|
|
||||||
|
if (direction == GIMP_TRANSFORM_BACKWARD)
|
||||||
|
gimp_matrix3_invert (&local_matrix);
|
||||||
|
|
||||||
for (list = vectors->strokes; list; list = g_list_next (list))
|
for (list = vectors->strokes; list; list = g_list_next (list))
|
||||||
{
|
{
|
||||||
GimpStroke *stroke = list->data;
|
GimpStroke *stroke = list->data;
|
||||||
@ -522,7 +528,7 @@ gimp_vectors_transform (GimpItem *item,
|
|||||||
{
|
{
|
||||||
GimpAnchor *anchor = list2->data;
|
GimpAnchor *anchor = list2->data;
|
||||||
|
|
||||||
gimp_matrix3_transform_point (matrix,
|
gimp_matrix3_transform_point (&local_matrix,
|
||||||
anchor->position.x,
|
anchor->position.x,
|
||||||
anchor->position.y,
|
anchor->position.y,
|
||||||
&anchor->position.x,
|
&anchor->position.x,
|
||||||
|
Reference in New Issue
Block a user