[gimp] Don't forget to add added drawables' GeglNodes to the stack's GeglNode
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Don't forget to add added drawables' GeglNodes to the stack's GeglNode
- Date: Tue, 25 Aug 2009 21:12:06 +0000 (UTC)
commit fe84af9fd98feef46cb5448b898610e1ab7d24ec
Author: Michael Natterer <mitch gimp org>
Date: Tue Aug 25 23:10:31 2009 +0200
Don't forget to add added drawables' GeglNodes to the stack's GeglNode
I have no clue how this could work before, but fixing it fixes
projection of nested groups. The goat can be evil.
app/core/gimpdrawablestack.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpdrawablestack.c b/app/core/gimpdrawablestack.c
index d54102c..beec703 100644
--- a/app/core/gimpdrawablestack.c
+++ b/app/core/gimpdrawablestack.c
@@ -158,7 +158,12 @@ gimp_drawable_stack_add (GimpContainer *container,
GIMP_CONTAINER_CLASS (parent_class)->add (container, object);
if (stack->graph)
- gimp_drawable_stack_add_node (stack, GIMP_DRAWABLE (object));
+ {
+ gegl_node_add_child (stack->graph,
+ gimp_item_get_node (GIMP_ITEM (object)));
+
+ gimp_drawable_stack_add_node (stack, GIMP_DRAWABLE (object));
+ }
if (gimp_item_get_visible (GIMP_ITEM (object)))
gimp_drawable_stack_drawable_visible (GIMP_ITEM (object), stack);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]