From 9c7b90bb96d9384665194f07a3b3425af20bcd43 Mon Sep 17 00:00:00 2001 From: Martin Zabinski Date: Fri, 27 Dec 2019 14:26:54 +0100 Subject: [PATCH] only redraw TimelineSeconds when needed --- Scripts/Rulers/TimelineSeconds.gd | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Scripts/Rulers/TimelineSeconds.gd b/Scripts/Rulers/TimelineSeconds.gd index 911e1d7..23e4324 100644 --- a/Scripts/Rulers/TimelineSeconds.gd +++ b/Scripts/Rulers/TimelineSeconds.gd @@ -9,9 +9,6 @@ var minor_subdivision := 3 var first : Vector2 var last : Vector2 -# warning-ignore:unused_argument -func _process(delta : float) -> void: - update() #Code taken and modified from Godot's source code func _draw() -> void: @@ -54,4 +51,4 @@ func _draw() -> void: if i % minor_subdivision == 0: draw_line(Vector2(position.x + RULER_WIDTH, RULER_WIDTH * 0.33), Vector2(position.x + RULER_WIDTH, RULER_WIDTH), color) else: - draw_line(Vector2(position.x + RULER_WIDTH, RULER_WIDTH * 0.66), Vector2(position.x + RULER_WIDTH, RULER_WIDTH), color) \ No newline at end of file + draw_line(Vector2(position.x + RULER_WIDTH, RULER_WIDTH * 0.66), Vector2(position.x + RULER_WIDTH, RULER_WIDTH), color)