Skip to content

Commit

Permalink
Fix shader-based rotation not working
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Nov 14, 2023
1 parent e22794e commit 5d7da07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/UI/Dialogs/ImageEffects/RotateImage.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5d7da07

Please sign in to comment.