From 2dc04b1682934fa60544abe0b5d884ce4f324a8a Mon Sep 17 00:00:00 2001 From: Sebastian Morr Date: Mon, 26 Oct 2020 19:27:53 +0100 Subject: [PATCH] Fix a problem where arrows sometimes disappear --- scenes/arrow.gd | 2 ++ scenes/arrow.tscn | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scenes/arrow.gd b/scenes/arrow.gd index 559a6b4..5f93d6d 100644 --- a/scenes/arrow.gd +++ b/scenes/arrow.gd @@ -21,6 +21,8 @@ func _process(_delta): var t = repository.objects[target] end = t.position $Target.hide() + $Line.show() + $Tip.show() else: $Target.text = target if $Target.text.substr(0, 5) != "refs/": diff --git a/scenes/arrow.tscn b/scenes/arrow.tscn index ff684da..b6440eb 100644 --- a/scenes/arrow.tscn +++ b/scenes/arrow.tscn @@ -3,7 +3,6 @@ [ext_resource path="res://fonts/default.tres" type="DynamicFont" id=1] [ext_resource path="res://scenes/arrow.gd" type="Script" id=2] - [node name="Arrow" type="Node2D"] show_behind_parent = true script = ExtResource( 2 )