feat: Tripo-Skater als Evaluationsasset aufnehmen

- Gewinner der ersten Runde als character.skater.figure_tripo
- 30k-Decimation im Projekt, 116k-Quelle nur in der Workbench
- Manifest-Test akzeptiert unriggte Assets
- Export-Presets und check_export schließen das Asset aus
- Lizenzstand und Retargeting-Findings dokumentiert
- Lizenz-Log der fal-Generierungen ergänzt
This commit is contained in:
torsten 2026-11-11 13:14:20 +01:00
parent 6172d311bc
commit e79b477ee0
8 changed files with 278 additions and 16 deletions

View file

@ -159,7 +159,11 @@ func _validate_asset(
_validate_synced_file(asset_id, target, sha256, size)
if rig is Dictionary and int(rig.get("deform_bones", 0)) > 0:
_validate_bone_weights(asset_id, target)
_validate_bone_weights(
asset_id,
target,
int(rig.get("vertex_influences", 8))
)
func _validate_placement(asset_id: String, placement: Dictionary) -> void:
@ -189,6 +193,19 @@ func _validate_placement(asset_id: String, placement: Dictionary) -> void:
func _validate_rig(asset_id: String, rig: Dictionary) -> void:
var control_bones := int(rig.get("control_bones", 0))
var deform_bones := int(rig.get("deform_bones", 0))
var rig_type := str(rig.get("type", ""))
if rig_type == "none":
_check(control_bones == 0, "asset '%s' has no control bones" % asset_id)
_check(deform_bones == 0, "asset '%s' has no deform bones" % asset_id)
_check(
str(rig.get("bind", "")).to_upper() == "NONE",
"asset '%s' marks an unrigged mesh" % asset_id
)
_check(
int(rig.get("vertex_influences", 0)) == 0,
"asset '%s' has no vertex influences" % asset_id
)
return
_check(control_bones > 0, "asset '%s' has control bones" % asset_id)
_check(deform_bones > 0, "asset '%s' has deform bones" % asset_id)
_check(
@ -199,6 +216,11 @@ func _validate_rig(asset_id: String, rig: Dictionary) -> void:
not str(rig.get("bind", "")).is_empty(),
"asset '%s' names its bind method" % asset_id
)
var influences := int(rig.get("vertex_influences", 8))
_check(
influences > 0 and influences <= 8,
"asset '%s' has a valid vertex influence count" % asset_id
)
func _validate_synced_file(
@ -234,7 +256,11 @@ func _validate_synced_file(
)
func _validate_bone_weights(asset_id: String, target: String) -> void:
func _validate_bone_weights(
asset_id: String,
target: String,
expected_influences: int
) -> void:
var absolute := "res://" + target
if not FileAccess.file_exists(absolute):
return
@ -251,11 +277,12 @@ func _validate_bone_weights(asset_id: String, target: String) -> void:
var mesh := mesh_instance.mesh
if mesh == null or mesh.get_surface_count() == 0:
continue
var format: int = mesh.surface_get_format(0)
_check(
(format & Mesh.ARRAY_FLAG_USE_8_BONE_WEIGHTS) != 0,
"asset '%s' uses eight bone influences" % asset_id
)
if expected_influences >= 8:
var format: int = mesh.surface_get_format(0)
_check(
(format & Mesh.ARRAY_FLAG_USE_8_BONE_WEIGHTS) != 0,
"asset '%s' uses eight bone influences" % asset_id
)
break
instance.free()