mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-27 16:03:14 +00:00
Fix brushes being drawn flipped horizontally
My bad!
This commit is contained in:
parent
b28e89e5c4
commit
6b9f860618
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue