Implemented a fix for UndoRedo leak (#34) - Thanks to qarmin!

This commit is contained in:
OverloadedOrama 2019-12-13 00:19:28 +02:00
parent 634c459d08
commit a4b7fe2205
2 changed files with 5 additions and 0 deletions

View file

@ -457,3 +457,7 @@ func blend_image_with_color(image : Image, color : Color, interpolate_factor : f
else: #If color is transparent - if it's the eraser
blended_image.set_pixel(xx, yy, Color(0, 0, 0, 0))
return blended_image
func _exit_tree() -> void:
# Thanks to qarmin from GitHub for pointing this out
undo_redo.free()