mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 11:54:44 -04:00
Implemented a fix for UndoRedo leak (#34) - Thanks to qarmin!
This commit is contained in:
parent
634c459d08
commit
a4b7fe2205
2 changed files with 5 additions and 0 deletions
|
@ -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()
|
Loading…
Add table
Add a link
Reference in a new issue