From c52013d0ebbdd15cfb22b63ea681a29b41dbd440 Mon Sep 17 00:00:00 2001 From: MaddoScientisto Date: Tue, 30 Dec 2025 22:04:54 +0100 Subject: [PATCH] Fixed error for vision cone --- addons/tattomoosa.vision_cone_3d/src/ConeShape3D.gd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/tattomoosa.vision_cone_3d/src/ConeShape3D.gd b/addons/tattomoosa.vision_cone_3d/src/ConeShape3D.gd index b789e5b9..ae0610c0 100644 --- a/addons/tattomoosa.vision_cone_3d/src/ConeShape3D.gd +++ b/addons/tattomoosa.vision_cone_3d/src/ConeShape3D.gd @@ -23,6 +23,12 @@ var pending_resize := false # Update size to initial state func _init() -> void: + points = PackedVector3Array([ + Vector3(0, 0, 0), + Vector3(0.01, 0, 0), + Vector3(0, 0.01, 0), + Vector3(0, 0, 0.01), + ]) _request_resize() # Will only resize once per frame, during idle time @@ -47,4 +53,4 @@ func _make_cone_polygon_points() -> PackedVector3Array: var y := sin(angle) * radius pts.push_back(Vector3(x, -height/2, y)) pts.push_back(top) - return pts \ No newline at end of file + return pts