Skip to content

Commit

Permalink
Fix random brushes not working
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Nov 6, 2023
1 parent 4f3a7a3 commit 1317e40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tools/Draw.gd
Expand Up @@ -157,8 +157,9 @@ func update_brush() -> void:
func update_random_image() -> void:
if _brush.type != Brushes.RANDOM_FILE:
return
var random = randi() % _brush.random.size()
var random := randi() % _brush.random.size()
_brush_image = _create_blended_brush_image(_brush.random[random])
_orignal_brush_image = _brush_image
_brush_texture.create_from_image(_brush_image, 0)
_indicator = _create_brush_indicator()
update_mirror_brush()
Expand Down

0 comments on commit 1317e40

Please sign in to comment.