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:
parent
51f6816433
commit
9824aef893
|
@ -18,7 +18,7 @@ func blend_children(frame: Frame, origin := Vector2i.ZERO, apply_effects := true
|
||||||
if children.size() <= 0:
|
if children.size() <= 0:
|
||||||
return image
|
return image
|
||||||
var textures: Array[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
|
var current_child_index := 0
|
||||||
for i in children.size():
|
for i in children.size():
|
||||||
var layer := children[i]
|
var layer := children[i]
|
||||||
|
|
|
@ -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,
|
# 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
|
# the second are the opacities, the third are the origins and the fourth are the
|
||||||
# clipping mask booleans.
|
# 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
|
# Draw current frame layers
|
||||||
for i in project.layers.size():
|
for i in project.layers.size():
|
||||||
var layer := project.layers[i]
|
var layer := project.layers[i]
|
||||||
|
|
Loading…
Reference in a new issue