mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 22:54:49 -04:00
Fixed bug where the user selected a new color on the pixel brush
Nothing significant, carry on
This commit is contained in:
parent
7ff823f3a5
commit
be6f9121ed
1 changed files with 14 additions and 12 deletions
|
@ -185,6 +185,7 @@ func create_brush_button(brush_img : Image) -> void:
|
||||||
hbox_container.add_child(brush_button)
|
hbox_container.add_child(brush_button)
|
||||||
|
|
||||||
func update_left_custom_brush() -> void:
|
func update_left_custom_brush() -> void:
|
||||||
|
if custom_left_brush_index > -1:
|
||||||
var custom_brush := Image.new()
|
var custom_brush := Image.new()
|
||||||
custom_brush.copy_from(custom_brushes[custom_left_brush_index])
|
custom_brush.copy_from(custom_brushes[custom_left_brush_index])
|
||||||
var custom_brush_size = custom_brush.get_size()
|
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)
|
custom_left_brush_texture.create_from_image(custom_left_brush_image, 0)
|
||||||
|
|
||||||
func update_right_custom_brush() -> void:
|
func update_right_custom_brush() -> void:
|
||||||
|
if custom_right_brush_index > -1:
|
||||||
var custom_brush := Image.new()
|
var custom_brush := Image.new()
|
||||||
custom_brush.copy_from(custom_brushes[custom_right_brush_index])
|
custom_brush.copy_from(custom_brushes[custom_right_brush_index])
|
||||||
var custom_brush_size = custom_brush.get_size()
|
var custom_brush_size = custom_brush.get_size()
|
||||||
|
|
Loading…
Add table
Reference in a new issue