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

Fix brushes being drawn flipped horizontally

My bad!
This commit is contained in:
Manolis Papadeas 2021-05-13 21:50:55 +03:00
parent b28e89e5c4
commit 6b9f860618

View file

@ -294,11 +294,11 @@ func draw_tool_brush(position : Vector2) -> void:
func remove_unselected_parts_of_brush(brush : Image, dst : Vector2) -> Image: func remove_unselected_parts_of_brush(brush : Image, dst : Vector2) -> Image:
var project : Project = Global.current_project var project : Project = Global.current_project
if !project.has_selection:
return brush
var size := brush.get_size() var size := brush.get_size()
var new_brush := Image.new() var new_brush := Image.new()
new_brush.copy_from(_mirror_brushes.x) new_brush.copy_from(brush)
if !project.has_selection:
return new_brush
new_brush.lock() new_brush.lock()
for x in size.x: for x in size.x: