mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 09:34:43 -04:00
Fixed bugs detected by overloaded
One bug was that rotxel was used at the end, no matter what algorithm was chosen. The other was that rotxel was taking into account a image of width x width dimensions.
This commit is contained in:
parent
e24e9d65a5
commit
a9a647a7ee
2 changed files with 6 additions and 2 deletions
|
@ -29,7 +29,11 @@ func _on_SpinBox_value_changed(value):
|
|||
|
||||
func _on_RotateImage_confirmed():
|
||||
Global.canvas.handle_undo("Draw")
|
||||
Global.rotxel(layer,$VBoxContainer/HBoxContainer/HSlider.value*PI/180)
|
||||
match $VBoxContainer/HBoxContainer2/OptionButton.text:
|
||||
"Rotxel":
|
||||
Global.rotxel(layer,$VBoxContainer/HBoxContainer/HSlider.value*PI/180)
|
||||
"Nearest neighbour":
|
||||
Global.nn_rotate(layer,$VBoxContainer/HBoxContainer/HSlider.value*PI/180)
|
||||
Global.canvas.handle_redo("Draw")
|
||||
$VBoxContainer/HBoxContainer/HSlider.value = 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue