scopedvr-map-editor/tests/probe_cache_keys.gd
2026-11-01 19:34:05 +01:00

22 lines
673 B
GDScript

extends SceneTree
## WEGWERF-Diagnose (t_50a07d4b): Warum hat _camo_tex_cache 4 Einträge?
## Druckt die Pfade (Keys) des Caches nach dem Aufbau der Testszene.
func _initialize() -> void:
_run.call_deferred()
func _run() -> void:
var scene: PackedScene = load("res://core/scenes/main.tscn")
var main = scene.instantiate()
root.add_child(main)
await process_frame
await process_frame
var main_glb: Array = main.get("glb_quellen")
print("main.gd glb_quellen=%s" % str(main_glb))
var store = load("res://core/viewport/glb_mesh_store.gd")
var cache: Dictionary = store.get("_camo_tex_cache")
for k in cache.keys():
print(" CACHE_KEY: '%s'" % str(k))
quit(0)