From 55c5688f168c9624927615d612f22661d02b93b1 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 9 Jul 2021 03:38:06 +0300 Subject: [PATCH] Fix changing cel opacity calling project.frames_changed() It shouldn't happen --- src/UI/Timeline/AnimationTimeline.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Timeline/AnimationTimeline.gd b/src/UI/Timeline/AnimationTimeline.gd index 6380c2b62..b8fa97230 100644 --- a/src/UI/Timeline/AnimationTimeline.gd +++ b/src/UI/Timeline/AnimationTimeline.gd @@ -543,7 +543,8 @@ func _on_MergeDownLayer_pressed() -> void: func _on_OpacitySlider_value_changed(value) -> void: - Global.current_project.frames[Global.current_project.current_frame].cels[Global.current_project.current_layer].opacity = value / 100 + var cel : Cel = Global.current_project.frames[Global.current_project.current_frame].cels[Global.current_project.current_layer] + cel.opacity = value / 100 Global.layer_opacity_slider.value = value Global.layer_opacity_slider.value = value Global.layer_opacity_spinbox.value = value