mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Immediately disable the delete layer button when locking a layer
This commit is contained in:
parent
14e73ae33b
commit
aa2a2bdce8
|
@ -186,6 +186,11 @@ func _on_lock_button_pressed() -> void:
|
||||||
if Global.select_layer_on_button_click:
|
if Global.select_layer_on_button_click:
|
||||||
_select_current_layer()
|
_select_current_layer()
|
||||||
_update_buttons_all_layers()
|
_update_buttons_all_layers()
|
||||||
|
var child_count := layer.get_child_count(true)
|
||||||
|
Global.disable_button(
|
||||||
|
Global.animation_timeline.remove_layer,
|
||||||
|
layer.is_locked_in_hierarchy() or Global.current_project.layers.size() == child_count + 1
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
func _on_link_button_pressed() -> void:
|
func _on_link_button_pressed() -> void:
|
||||||
|
|
Loading…
Reference in a new issue