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

Fix shader-based rotation not working

This commit is contained in:
Emmanouil Papadeas 2023-11-16 15:51:08 +02:00
parent fc33ee1da7
commit 6473febe78

View file

@ -181,10 +181,11 @@ func commit_action(cel: Image, _project: Project = Global.current_project) -> vo
URD:
DrawingAlgos.fake_rotsprite(image, angle, pivot)
if _project.has_selection and selection_checkbox.pressed and !_type_is_shader():
cel.blend_rect(image, Rect2(Vector2.ZERO, image.get_size()), Vector2.ZERO)
else:
cel.blit_rect(image, Rect2(Vector2.ZERO, image.get_size()), Vector2.ZERO)
if not _type_is_shader():
if _project.has_selection and selection_checkbox.pressed:
cel.blend_rect(image, Rect2(Vector2.ZERO, image.get_size()), Vector2.ZERO)
else:
cel.blit_rect(image, Rect2(Vector2.ZERO, image.get_size()), Vector2.ZERO)
func _type_is_shader() -> bool: