[gimp] Issue #1119 - Unable to give a layer group as a parameter to a python script
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Issue #1119 - Unable to give a layer group as a parameter to a python script
- Date: Sat, 26 Jan 2019 21:03:05 +0000 (UTC)
commit b295a33aafe122f318e591546c1a2a9217fd19af
Author: Ell <ell_se yahoo com>
Date: Sat Jan 26 15:55:52 2019 -0500
Issue #1119 - Unable to give a layer group as a parameter to a python script
Pickle gimp.GroupLayer the same way we pickle gimp.Layer, so that
layer-group parameters can be properly saved.
All credit goes to Ofnuts :)
plug-ins/pygimp/gimpshelf.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/pygimp/gimpshelf.py b/plug-ins/pygimp/gimpshelf.py
index 455c757b0d..999d319579 100644
--- a/plug-ins/pygimp/gimpshelf.py
+++ b/plug-ins/pygimp/gimpshelf.py
@@ -53,11 +53,12 @@ def _display_id(obj):
def _vectors_id(obj):
return gimp._id2vectors, (int(obj.ID),)
-copy_reg.pickle(gimp.Image, _image_id, gimp._id2image)
-copy_reg.pickle(gimp.Layer, _drawable_id, gimp._id2drawable)
-copy_reg.pickle(gimp.Channel, _drawable_id, gimp._id2drawable)
-copy_reg.pickle(gimp.Display, _display_id, gimp._id2display)
-copy_reg.pickle(gimp.Vectors, _vectors_id, gimp._id2vectors)
+copy_reg.pickle(gimp.Image, _image_id, gimp._id2image)
+copy_reg.pickle(gimp.Layer, _drawable_id, gimp._id2drawable)
+copy_reg.pickle(gimp.GroupLayer, _drawable_id, gimp._id2drawable)
+copy_reg.pickle(gimp.Channel, _drawable_id, gimp._id2drawable)
+copy_reg.pickle(gimp.Display, _display_id, gimp._id2display)
+copy_reg.pickle(gimp.Vectors, _vectors_id, gimp._id2vectors)
del copy_reg, _image_id, _drawable_id, _display_id, _vectors_id
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]