From 70c18fc5e76b503f967c8647f9c2d6d6a50eee81 Mon Sep 17 00:00:00 2001 From: Nitwel Date: Sun, 10 Dec 2023 01:48:39 +0100 Subject: [PATCH] tweak camera --- content/entities/camera/camera.gd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/entities/camera/camera.gd b/content/entities/camera/camera.gd index 49b254d..21f9b9e 100644 --- a/content/entities/camera/camera.gd +++ b/content/entities/camera/camera.gd @@ -5,6 +5,7 @@ extends StaticBody3D @onready var view = $View @onready var http_request = $HTTPRequest +@onready var mesh = $MeshInstance3D # Called when the node enters the scene tree for the first time. @@ -20,12 +21,14 @@ func _ready(): func set_state(stateInfo): if stateInfo == null: view.texture = null + mesh.visible = true return var state = stateInfo["state"] if state == "unavailable": view.texture = null + mesh.visible = true return if stateInfo["attributes"].has("entity_picture"): @@ -53,6 +56,7 @@ func load_image(url: String): var texture = ImageTexture.create_from_image(image) view.texture = texture view.pixel_size = pixel_size + mesh.visible = false func _save(): return {