1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 15:39:49 +00:00

Change occurrences of canvas_preview.frame to canvas_preview.frame_index

This commit is contained in:
Emmanouil Papadeas 2023-05-17 17:34:53 +03:00
parent 55bc6e5a8b
commit fb4b26a060

View file

@ -60,7 +60,7 @@ func _on_VFrames_value_changed(value: float) -> void:
func _on_StartFrame_value_changed(value: float) -> void: func _on_StartFrame_value_changed(value: float) -> void:
canvas_preview.frame = value - 1 canvas_preview.frame_index = value - 1
canvas_preview.start_sprite_sheet_frame = value canvas_preview.start_sprite_sheet_frame = value
if end_frame.value < value: if end_frame.value < value:
end_frame.value = value end_frame.value = value
@ -71,7 +71,7 @@ func _on_EndFrame_value_changed(value: float) -> void:
canvas_preview.end_sprite_sheet_frame = value canvas_preview.end_sprite_sheet_frame = value
if start_frame.value > value: if start_frame.value > value:
start_frame.value = value start_frame.value = value
canvas_preview.frame = value - 1 canvas_preview.frame_index = value - 1
canvas_preview.update() canvas_preview.update()