mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Use a Vector2i in Selection.gd when pasting
This commit is contained in:
parent
8802e3ab41
commit
55325a38a4
|
@ -736,9 +736,9 @@ func paste(in_place := false) -> void:
|
|||
|
||||
var clip_map := SelectionMap.new()
|
||||
clip_map.data = clipboard.selection_map
|
||||
var max_size := Vector2(
|
||||
max(clip_map.get_size().x, project.selection_map.get_size().x),
|
||||
max(clip_map.get_size().y, project.selection_map.get_size().y)
|
||||
var max_size := Vector2i(
|
||||
maxi(clip_map.get_size().x, project.selection_map.get_size().x),
|
||||
maxi(clip_map.get_size().y, project.selection_map.get_size().y)
|
||||
)
|
||||
|
||||
project.selection_map.copy_from(clip_map)
|
||||
|
|
Loading…
Reference in a new issue