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