Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions skse/plugins/hdtSkinnedMeshConfigs/hdtSMP64.sch
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@

<sch:title>hdtSMP64 configuration validation rules</sch:title>

<sch:ns prefix="f" uri="FSMP-Validator"/>

<sch:pattern id="static-rigid-body">
<sch:title>Static rigid body constraints (mass=0)</sch:title>

<sch:rule context="bone-default[mass = '0']">
<sch:assert test="not(inertia)" role="error">inertia has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:assert test="not(linearDamping)" role="error">linearDamping has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:assert test="not(angularDamping)" role="error">angularDamping has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:rule context="f:bone-default[f:mass = '0']">
<sch:assert test="not(f:inertia)" role="error">inertia has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:assert test="not(f:linearDamping)" role="error">linearDamping has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:assert test="not(f:angularDamping)" role="error">angularDamping has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
</sch:rule>

<sch:rule context="bone[mass = '0']">
<sch:assert test="not(inertia)" role="error">inertia has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:assert test="not(linearDamping)" role="error">linearDamping has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:assert test="not(angularDamping)" role="error">angularDamping has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:rule context="f:bone[f:mass = '0']">
<sch:assert test="not(f:inertia)" role="error">inertia has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:assert test="not(f:linearDamping)" role="error">linearDamping has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
<sch:assert test="not(f:angularDamping)" role="error">angularDamping has no effect on a static rigid body (mass=0) and must not be used when mass is 0.</sch:assert>
</sch:rule>
</sch:pattern>

Expand Down