"Brush color from" doesn't appear when Pencil isn't selected

Also renamed some nodes and made changes to the links found at the About Dialog.
This commit is contained in:
OverloadedOrama 2019-12-03 17:59:50 +02:00
parent 70bd1dde43
commit 74ca33ed35
3 changed files with 36 additions and 33 deletions

View file

@ -9,7 +9,8 @@ func _on_BrushButton_pressed() -> void:
Global.current_left_brush_type = brush_type
Global.custom_left_brush_index = custom_brush_index
if custom_brush_index > -1: #Custom brush
Global.left_color_interpolation_container.visible = true
if Global.current_left_tool == "Pencil":
Global.left_color_interpolation_container.visible = true
if hint_tooltip == "":
Global.left_brush_type_label.text = "Custom brush"
else:
@ -24,7 +25,8 @@ func _on_BrushButton_pressed() -> void:
Global.current_right_brush_type = brush_type
Global.custom_right_brush_index = custom_brush_index
if custom_brush_index > -1:
Global.right_color_interpolation_container.visible = true
if Global.current_right_tool == "Pencil":
Global.right_color_interpolation_container.visible = true
if hint_tooltip == "":
Global.right_brush_type_label.text = "Custom brush"
else: