Files
tactical-shooter/tests/check_models.gd
T
shawn 9901f6a34d Fix blaster GLB root type error (Node3D, not MeshInstance3D)
- Changed _gun_model type from MeshInstance3D to Node3D
  (all imported GLB/GLTF weapon models have Node3D root)
- Added check_models.gd diagnostic script

The type mismatch at WeaponManager._load_weapon_models:73
was the only script error in the user's game.log.
Headless bot tests confirm movement still works fine.
2026-07-03 17:32:18 -04:00

21 lines
571 B
GDScript

#!/usr/bin/env -S godot --headless --script
extends SceneTree
func _init():
var paths = [
"res://assets/kenney/models/blaster.glb",
"res://examples/multiplayer-fps/models/knife.fbx",
"res://examples/multiplayer-fps/models/grenade.glb",
]
for p in paths:
var scene = load(p)
if scene:
var inst = scene.instantiate()
print(p, " -> type: ", inst.get_class(), " children: ", inst.get_child_count())
for c in inst.get_children():
print(" child: ", c.get_class(), " ", c.name)
inst.queue_free()
else:
print(p, " -> FAILED TO LOAD")
quit()