Commits

Denilson Sá committed 81f510a

Added undo_group; added comment about Gimp and Python versions

Comments (0)

Files changed (1)

gimp-2.6-plug-ins/split_layer_into_tiles.py

 
 # This script is also available on "GIMP Plugin Registry"
 # http://registry.gimp.org/node/25110
+#
+# 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
             gimp.progress_update(progress)
 
+    pdb.gimp_image_undo_group_end(img)
+
 
 # Parameters to register()
 #   name