1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Attempt to fix the preview of the move tool not being aligned to the pixel grid

This commit is contained in:
Emmanouil Papadeas 2024-09-19 00:38:46 +03:00
parent 51f6816433
commit 9824aef893
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ func blend_children(frame: Frame, origin := Vector2i.ZERO, apply_effects := true
if children.size() <= 0:
return image
var textures: Array[Image] = []
var metadata_image := Image.create(children.size(), 4, false, Image.FORMAT_RG8)
var metadata_image := Image.create(children.size(), 4, false, Image.FORMAT_RGF)
var current_child_index := 0
for i in children.size():
var layer := children[i]

View file

@ -158,7 +158,7 @@ func draw_layers(force_recreate := false) -> void:
# Nx4 texture, where N is the number of layers and the first row are the blend modes,
# the second are the opacities, the third are the origins and the fourth are the
# clipping mask booleans.
layer_metadata_image = Image.create(project.layers.size(), 4, false, Image.FORMAT_RG8)
layer_metadata_image = Image.create(project.layers.size(), 4, false, Image.FORMAT_RGF)
# Draw current frame layers
for i in project.layers.size():
var layer := project.layers[i]