1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fixed some leak issues with gdgifexporter

Made scrips extend Reference instead of Node
This commit is contained in:
OverloadedOrama 2020-08-19 01:01:00 +03:00
parent 14d958e55f
commit 1ff32f2892
9 changed files with 9 additions and 9 deletions

View file

@ -1,4 +1,4 @@
extends Node extends Reference
var _shader: Shader var _shader: Shader

View file

@ -1,4 +1,4 @@
extends Node extends Reference
class LSB_LZWBitPacker: class LSB_LZWBitPacker:

View file

@ -1,4 +1,4 @@
extends Node extends Reference
class LSB_LZWBitUnpacker: class LSB_LZWBitUnpacker:

View file

@ -1,4 +1,4 @@
extends Node extends Reference
var lsbbitpacker = preload('./lsbbitpacker.gd') var lsbbitpacker = preload('./lsbbitpacker.gd')

View file

@ -1,4 +1,4 @@
extends Node extends Reference
var little_endian = preload('./little_endian.gd').new() var little_endian = preload('./little_endian.gd').new()

View file

@ -1,4 +1,4 @@
extends Node extends Reference
func int_to_2bytes(value: int) -> PoolByteArray: func int_to_2bytes(value: int) -> PoolByteArray:

View file

@ -1,4 +1,4 @@
extends Node extends Reference
var converter = preload('../converter.gd').new() var converter = preload('../converter.gd').new()

View file

@ -240,7 +240,7 @@ func export_gif(args: Dictionary) -> void:
Global.notification_label("File(s) exported") Global.notification_label("File(s) exported")
func write_frame_to_gif(image: Image, wait_time: float, exporter: Node, export_dialog: Node) -> void: func write_frame_to_gif(image: Image, wait_time: float, exporter: Reference, export_dialog: Node) -> void:
exporter.write_frame(image, wait_time, quantization) exporter.write_frame(image, wait_time, quantization)
increase_export_progress(export_dialog) increase_export_progress(export_dialog)

View file

@ -73,7 +73,7 @@ func cursor_move(position : Vector2) -> void:
func draw_indicator() -> void: func draw_indicator() -> void:
var rect := Rect2(_cursor, Vector2.ONE) var rect := Rect2(_cursor, Vector2.ONE)
Global.canvas.draw_rect(rect, Color.blue, false) Global.canvas.indicators.draw_rect(rect, Color.blue, false)
func _get_draw_rect() -> Rect2: func _get_draw_rect() -> Rect2: