From 825e06f98af90f018a7594b9bc5898ffe2a8c653 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 11 Mar 2020 00:01:12 +0200 Subject: [PATCH] Fixed issue where the remove layer button was not disabled when there was only one layer left --- Scripts/Global.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Scripts/Global.gd b/Scripts/Global.gd index 0f8e97d4e..701cd68d0 100644 --- a/Scripts/Global.gd +++ b/Scripts/Global.gd @@ -534,6 +534,8 @@ func layers_changed(value : Array) -> void: remove_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN if layers.size() == 1: + remove_layer_button.disabled = true + remove_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN move_up_layer_button.disabled = true move_up_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN move_down_layer_button.disabled = true