mirror of https://github.com/GNOME/gimp.git
the "shift" operation's x and y properties are doubles not ints.
2008-10-10 Michael Natterer <mitch@gimp.org> * app/core/gimplayer.c (gimp_layer_translate) (gimp_layer_get_node): the "shift" operation's x and y properties are doubles not ints. (gimp_layer_apply_mask): properly disconnect the mask node. (gimp_layer_set_opacity): the opacity node has a "value" property, not "opacity". svn path=/trunk/; revision=27205
This commit is contained in:
parent
517e58cdeb
commit
f2a6b781e4
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2008-10-10 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimplayer.c (gimp_layer_translate)
|
||||
(gimp_layer_get_node): the "shift" operation's x and y properties
|
||||
are doubles not ints.
|
||||
|
||||
(gimp_layer_apply_mask): properly disconnect the mask node.
|
||||
|
||||
(gimp_layer_set_opacity): the opacity node has a "value" property,
|
||||
not "opacity".
|
||||
|
||||
2008-10-09 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
Address Bug 554983 – Layers Projection using GEGL
|
||||
|
|
|
@ -715,8 +715,8 @@ gimp_layer_translate (GimpItem *item,
|
|||
|
||||
if (layer->shift_node)
|
||||
gegl_node_set (layer->shift_node,
|
||||
"x", item->offset_x,
|
||||
"y", item->offset_y,
|
||||
"x", (gdouble) item->offset_x,
|
||||
"y", (gdouble) item->offset_y,
|
||||
NULL);
|
||||
|
||||
/* update the new region */
|
||||
|
@ -1662,6 +1662,9 @@ gimp_layer_apply_mask (GimpLayer *layer,
|
|||
{
|
||||
GeglNode *source;
|
||||
|
||||
gegl_node_disconnect (layer->mask_node, "input");
|
||||
gegl_node_disconnect (layer->mask_node, "aux");
|
||||
|
||||
gegl_node_remove_child (layer->node, layer->mask_node);
|
||||
layer->mask_node = NULL;
|
||||
|
||||
|
@ -1932,8 +1935,8 @@ gimp_layer_get_node (GimpLayer *layer)
|
|||
gimp_item_offsets (GIMP_ITEM (layer), &off_x, &off_y);
|
||||
layer->shift_node = gegl_node_new_child (layer->node,
|
||||
"operation", "shift",
|
||||
"x", off_x,
|
||||
"y", off_y,
|
||||
"x", (gdouble) off_x,
|
||||
"y", (gdouble) off_y,
|
||||
NULL);
|
||||
|
||||
if (layer->mask_node)
|
||||
|
@ -1992,7 +1995,7 @@ gimp_layer_set_opacity (GimpLayer *layer,
|
|||
|
||||
if (layer->opacity_node)
|
||||
gegl_node_set (layer->opacity_node,
|
||||
"opacity", layer->opacity,
|
||||
"value", layer->opacity,
|
||||
NULL);
|
||||
|
||||
gimp_drawable_update (GIMP_DRAWABLE (layer),
|
||||
|
|
Loading…
Reference in New Issue