1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Fix shader-based rotation not working

This commit is contained in:
Emmanouil Papadeas 2023-11-14 03:27:05 +02:00
parent e22794e611
commit 5d7da079cc

View file

@ -139,10 +139,10 @@ func commit_action(cel: Image, _project := Global.current_project) -> void:
URD:
DrawingAlgos.fake_rotsprite(image, angle, pivot)
if _project.has_selection and selection_checkbox.button_pressed and !_type_is_shader():
cel.blend_rect(image, Rect2i(Vector2i.ZERO, image.get_size()), Vector2i.ZERO)
else:
cel.blit_rect(image, Rect2i(Vector2i.ZERO, image.get_size()), Vector2i.ZERO)
if _project.has_selection and selection_checkbox.button_pressed:
cel.blend_rect(image, Rect2i(Vector2i.ZERO, image.get_size()), Vector2i.ZERO)
else:
cel.blit_rect(image, Rect2i(Vector2i.ZERO, image.get_size()), Vector2i.ZERO)
func _type_is_shader() -> bool: