1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Fixed bug where the user selected a new color on the pixel brush

Nothing significant, carry on
This commit is contained in:
OverloadedOrama 2019-09-27 20:39:16 +03:00
parent 7ff823f3a5
commit be6f9121ed

View file

@ -185,6 +185,7 @@ func create_brush_button(brush_img : Image) -> void:
hbox_container.add_child(brush_button)
func update_left_custom_brush() -> void:
if custom_left_brush_index > -1:
var custom_brush := Image.new()
custom_brush.copy_from(custom_brushes[custom_left_brush_index])
var custom_brush_size = custom_brush.get_size()
@ -193,6 +194,7 @@ func update_left_custom_brush() -> void:
custom_left_brush_texture.create_from_image(custom_left_brush_image, 0)
func update_right_custom_brush() -> void:
if custom_right_brush_index > -1:
var custom_brush := Image.new()
custom_brush.copy_from(custom_brushes[custom_right_brush_index])
var custom_brush_size = custom_brush.get_size()