Denilson Sá avatar Denilson Sá committed 81f510a

Added undo_group; added comment about Gimp and Python versions

Comments (0)

Files changed (1)


 # This script is also available on "GIMP Plugin Registry"
+# Tested on Gimp 2.6.11 with Python 2.6.6
 # Thanks to gwidion (Joao S. O. Bueno) from #gimp channel
 # for getting me started with Gimp plugins!
     #    repr(layer.offsets[0]), repr(layer.offsets[1]),
+    pdb.gimp_image_undo_group_start(img)
     x_range = int(layer.width // tile_width)
     y_range = int(layer.height // tile_height)
     x_off, y_off = layer.offsets
             progress += progress_increment
+    pdb.gimp_image_undo_group_end(img)
 # Parameters to register()
 #   name
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.