From 2d8d5220310d43861cbc682013f70a959a66079e Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 5 Jan 2021 03:43:40 +0200 Subject: [PATCH] Update gdgifexporter addon - closes #387 Note that you need Godot 3.2.4+ for the issue to be solved, the leaks still seem to occur in Godot 3.2.3 and prior. --- addons/README.md | 2 +- addons/gdgifexporter/quantization/median_cut.gd | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/README.md b/addons/README.md index 0d97815ee..79ab9a926 100644 --- a/addons/README.md +++ b/addons/README.md @@ -3,7 +3,7 @@ ## gdgifexporter - Upstream: https://github.com/jegor377/godot-gdgifexporter -- Version: git (201123154acfb9a1e00149fa708b4f13645d88dc, 2020) +- Version: git (b6a6628dc253acb5c2955bc9ca5c8eaa2eaf2e1a, 2021) - License: MIT Files extracted from source: diff --git a/addons/gdgifexporter/quantization/median_cut.gd b/addons/gdgifexporter/quantization/median_cut.gd index ba81994a5..98fac2bb1 100644 --- a/addons/gdgifexporter/quantization/median_cut.gd +++ b/addons/gdgifexporter/quantization/median_cut.gd @@ -13,9 +13,10 @@ class TreeNode: var average_color: Array var axis: int var median: int - var parent: TreeNode - var left: TreeNode - var right: TreeNode + # Comments is workaround for Godot memory leak bug + var parent#: TreeNode + var left#: TreeNode + var right#: TreeNode func _init(_parent: TreeNode, _colors: Array):