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

Fix random brushes not working

This commit is contained in:
Emmanouil Papadeas 2023-11-06 02:32:35 +02:00
parent 4f3a7a305a
commit 1317e40ffa

View file

@ -157,8 +157,9 @@ func update_brush() -> void:
func update_random_image() -> void: func update_random_image() -> void:
if _brush.type != Brushes.RANDOM_FILE: if _brush.type != Brushes.RANDOM_FILE:
return return
var random = randi() % _brush.random.size() var random := randi() % _brush.random.size()
_brush_image = _create_blended_brush_image(_brush.random[random]) _brush_image = _create_blended_brush_image(_brush.random[random])
_orignal_brush_image = _brush_image
_brush_texture.create_from_image(_brush_image, 0) _brush_texture.create_from_image(_brush_image, 0)
_indicator = _create_brush_indicator() _indicator = _create_brush_indicator()
update_mirror_brush() update_mirror_brush()