feat(web): armature bone parenting, pose evaluation and ABB IRB120 headed suite
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

- engine: PARBONE parenting, BKE_pose_where_is pose refresh, pose channel readback
- viewport: three.js bone wireframes for the main-thread and offscreen paths
- properties: draft numeric transform inputs (decimals survive typing), armature pose
  readback in degrees with step=any fields so validation cannot block Apply Pose
- tests: headed armature/robot suite (9 cases), receipts bound to candidate hashes

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-29 09:13:02 +08:00
parent 6168482828
commit 8dcc41c06d
29 changed files with 1973 additions and 45 deletions

View File

@@ -44,6 +44,11 @@ export interface SceneNodeIR {
sourceLibrary?: string | null;
type: SceneNodeType;
parentId: string | null;
/** BONE marks PARBONE parenting; the parent world includes parentBoneMatrix. */
parentType?: "OBJECT" | "BONE";
parentBoneName?: string;
/** Armature-space bone matrix (pose_mat plus head/tail factor) for BONE parents. */
parentBoneMatrix?: number[];
dataId: string | null;
/** Collection instantiated by this empty object, if any. */
instanceCollectionId?: string;
@@ -150,6 +155,11 @@ export interface ArmatureBoneIR {
connected?: boolean;
restMatrix: number[];
poseMatrix?: number[];
/** Pose channel transforms the pose matrix was evaluated from. */
poseLocation?: [number, number, number];
poseRotationEuler?: [number, number, number];
poseScale?: [number, number, number];
poseRotMode?: number;
poseConstraints?: Array<{
name: string;
type: "COPY_LOCATION" | "COPY_ROTATION" | "COPY_SCALE" | "IK" | "TRACK_TO" | "UNKNOWN";