Fixed issue where the brush type select popup window chose brush type for the right tool instead of the left

This commit is contained in:
OverloadedOrama 2019-12-16 02:02:49 +02:00
parent ed42cdaef1
commit 6c14a7d5e2
3 changed files with 5 additions and 1 deletions

View file

@ -734,9 +734,11 @@ func _on_RightIndicatorCheckbox_toggled(button_pressed) -> void:
func _on_LeftBrushTypeButton_pressed() -> void:
Global.brushes_popup.popup(Rect2(Global.left_brush_type_button.rect_global_position, Vector2(226, 72)))
Global.brush_type_window_position = "left"
func _on_RightBrushTypeButton_pressed() -> void:
Global.brushes_popup.popup(Rect2(Global.right_brush_type_button.rect_global_position, Vector2(226, 72)))
Global.brush_type_window_position = "right"
func _on_LeftBrushSizeEdit_value_changed(value) -> void:
var new_size = int(value)