Feat/14 movement overhaul #20
@@ -159,13 +159,12 @@ func _ensure_locomotion_animations(ap: AnimationPlayer) -> void:
|
||||
## (tracks exist but contain near-zero motion — model appears to T-pose).
|
||||
## Uses code-driven bone rotation applied directly via set_bone_pose_rotation().
|
||||
|
||||
# Always replace animations that have near-zero motion (Blender GLTF track stripping)
|
||||
var broken_walk := _is_animation_broken(ap, "Walk")
|
||||
var broken_run := _is_animation_broken(ap, "Run")
|
||||
var broken_jump := _is_animation_broken(ap, "Jump")
|
||||
var broken_idle := _is_animation_broken(ap, "Idle")
|
||||
if not broken_idle:
|
||||
broken_idle = _is_animation_broken(ap, "idle")
|
||||
# Always replace all locomotion animations — GLB is known to be stripped
|
||||
# by Blender's GLTF exporter (all tracks have near-zero motion)
|
||||
var broken_walk := true
|
||||
var broken_run := true
|
||||
var broken_jump := true
|
||||
var broken_idle := true
|
||||
|
||||
if broken_walk:
|
||||
print("SkinnedPlayerModel: Walk animation has near-zero motion — replacing with procedural")
|
||||
|
||||
Reference in New Issue
Block a user