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

@ -5,7 +5,7 @@ var custom_brush_index := -1
func _on_BrushButton_pressed() -> void:
#Change left brush
if Global.brushes_popup.rect_global_position == Global.left_brush_type_button.rect_global_position:
if Global.brush_type_window_position == "left":
Global.current_left_brush_type = brush_type
Global.custom_left_brush_index = custom_brush_index
if custom_brush_index > -1: #Custom brush