diff --git a/Editor/Scenes/TrackEditor/TrackEditor.gd b/Editor/Scenes/TrackEditor/TrackEditor.gd index 33fcc4a..adbb952 100644 --- a/Editor/Scenes/TrackEditor/TrackEditor.gd +++ b/Editor/Scenes/TrackEditor/TrackEditor.gd @@ -50,8 +50,10 @@ func _ready(): func _process(delta): if note_container.get_child_count() != 0: var size_y = note_container.rect_size.y/note_container.get_child_count() - if size.y != size_y: + if int(size.y) != int(size_y): size.y = size_y + print("Size: ", size.y) + print("Size_: ", size_y) grid.draw(Vector2.ZERO, size) func _on_PaintButton_toggled(button_pressed):