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:
parent
14d958e55f
commit
1ff32f2892
|
@ -1,4 +1,4 @@
|
||||||
extends Node
|
extends Reference
|
||||||
|
|
||||||
|
|
||||||
var _shader: Shader
|
var _shader: Shader
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends Node
|
extends Reference
|
||||||
|
|
||||||
|
|
||||||
class LSB_LZWBitPacker:
|
class LSB_LZWBitPacker:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends Node
|
extends Reference
|
||||||
|
|
||||||
|
|
||||||
class LSB_LZWBitUnpacker:
|
class LSB_LZWBitUnpacker:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends Node
|
extends Reference
|
||||||
|
|
||||||
|
|
||||||
var lsbbitpacker = preload('./lsbbitpacker.gd')
|
var lsbbitpacker = preload('./lsbbitpacker.gd')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends Node
|
extends Reference
|
||||||
|
|
||||||
|
|
||||||
var little_endian = preload('./little_endian.gd').new()
|
var little_endian = preload('./little_endian.gd').new()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends Node
|
extends Reference
|
||||||
|
|
||||||
|
|
||||||
func int_to_2bytes(value: int) -> PoolByteArray:
|
func int_to_2bytes(value: int) -> PoolByteArray:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extends Node
|
extends Reference
|
||||||
|
|
||||||
|
|
||||||
var converter = preload('../converter.gd').new()
|
var converter = preload('../converter.gd').new()
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue