Skip to content

Commit

Permalink
Fix: Calling update on the grid every frame
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinav Kuruvila Joseph authored and IsotoxalDev committed Mar 28, 2022
1 parent 1165445 commit 53bc0bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Editor/Scenes/TrackEditor/TrackEditor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 53bc0bb

Please sign in to comment.