Audit-1 : fix transition time + JointMaskReloadListener
C-01 : GENERAL_ANIMATION_TRANSITION_TIME was int 6 while all consumers expect a float transitionTime in seconds — 6s gave inter-animation transitions of 120 ticks. Change to float 0.15F (3 ticks). C-02 : JointMaskReloadListener was never registered, leaving AnimationSubFileReader callers at lines 170/182/184 to receive null from getNoneMask()/getJointMaskEntry() with no data loaded. Register it in V2ClientSetup at LOW priority so it fires after the GLB cache clear and alongside the other bondage client reload listeners. M-03 : ASSETS_NEEDED.md JSON example already corrected in the earlier doc-keeper pass (Torso=7, Chest=8, etc.). Drive-by: add logs/ to .gitignore — the runClient logs were accidentally tracked.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -40,6 +40,7 @@ package-lock.json
|
|||||||
|
|
||||||
# Build logs
|
# Build logs
|
||||||
build_output.log
|
build_output.log
|
||||||
|
logs/
|
||||||
|
|
||||||
# OS files
|
# OS files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ public final class TiedUpRigConstants {
|
|||||||
/** Durée d'un tick MC en secondes (20 TPS). */
|
/** Durée d'un tick MC en secondes (20 TPS). */
|
||||||
public static final float A_TICK = 1.0F / 20.0F;
|
public static final float A_TICK = 1.0F / 20.0F;
|
||||||
|
|
||||||
/** Durée de transition inter-animation par défaut (en ticks). */
|
/** Durée de transition inter-animation par défaut (en secondes — 0.15s = 3 ticks). */
|
||||||
public static final int GENERAL_ANIMATION_TRANSITION_TIME = 6;
|
public static final float GENERAL_ANIMATION_TRANSITION_TIME = 0.15F;
|
||||||
|
|
||||||
/** Nombre max de joints supportés par une armature (limite matrice pool). */
|
/** Nombre max de joints supportés par une armature (limite matrice pool). */
|
||||||
public static final int MAX_JOINTS = 128;
|
public static final int MAX_JOINTS = 128;
|
||||||
|
|||||||
@@ -116,8 +116,11 @@ public class V2ClientSetup {
|
|||||||
) {
|
) {
|
||||||
event.registerReloadListener(new DataDrivenItemReloadListener());
|
event.registerReloadListener(new DataDrivenItemReloadListener());
|
||||||
event.registerReloadListener(new GlbValidationReloadListener());
|
event.registerReloadListener(new GlbValidationReloadListener());
|
||||||
|
event.registerReloadListener(
|
||||||
|
new com.tiedup.remake.rig.anim.client.property.JointMaskReloadListener()
|
||||||
|
);
|
||||||
TiedUpMod.LOGGER.info(
|
TiedUpMod.LOGGER.info(
|
||||||
"[V2ClientSetup] Data-driven item + GLB validation reload listeners registered"
|
"[V2ClientSetup] Data-driven item + GLB validation + joint mask reload listeners registered"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user