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:
parent
e22794e611
commit
5d7da079cc
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue