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

Fix memory leak when applying image effects

This commit is contained in:
Emmanouil Papadeas 2023-11-10 22:51:15 +02:00
parent d7f6432bb7
commit 786cc39e89
11 changed files with 0 additions and 11 deletions

View file

@ -29,7 +29,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
else:
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _on_RButton_toggled(button_pressed: bool) -> void:

View file

@ -42,7 +42,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
else:
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _on_OffsetSliders_value_changed(_value: Vector2) -> void:

View file

@ -108,7 +108,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
else:
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _on_ShapeOptionButton_item_selected(index: int) -> void:

View file

@ -23,7 +23,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
else:
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _on_GradientEdit_updated(_gradient: Gradient, _cc: bool) -> void:

View file

@ -39,7 +39,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
else:
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _reset() -> void:

View file

@ -30,7 +30,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
else:
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _on_RButton_toggled(button_pressed: bool) -> void:

View file

@ -43,7 +43,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
else:
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _on_OffsetSliders_value_changed(_value: Vector2) -> void:

View file

@ -40,7 +40,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
else:
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _on_ThickValue_value_changed(value: int) -> void:

View file

@ -25,7 +25,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
else:
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _on_LevelsSlider_value_changed(value: float) -> void:

View file

@ -130,7 +130,6 @@ func commit_action(cel: Image, _project := Global.current_project) -> void:
params["preview"] = false
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, _project.size)
await gen.done
else:
match type_option_button.get_selected_id():
ROTXEL:

View file

@ -28,7 +28,6 @@ func commit_action(cel: Image, project := Global.current_project) -> void:
params[param] = param_data
var gen := ShaderImageEffect.new()
gen.generate_image(cel, shader, params, project.size)
await gen.done
func _on_ChooseShader_pressed() -> void: