Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(avatar-studio): stop freezing a mid-idle animation frame into every saved avatar

nirholas68cadcd666a1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e9e44490f..c0f2fcef0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-08-07
+- **Avatars now save in a clean, neutral stance instead of a frozen animation frame**: Saving an avatar in the Studio used to capture whatever the idle animation happened to be doing at that exact instant, and freeze it into the model permanently. Because the saved file carries no animation of its own, that one arbitrary frame became the avatar's pose everywhere it appeared: arms tucked in at odd angles, one side sitting differently from the other, and a different result each time you saved the same avatar. Avatars are now saved in their proper neutral pose, which is symmetric and identical on every save, so downloads, animation retargeting and clothing all start from the stance the body was actually built around. Your gallery thumbnail still shows the relaxed idle pose it always did. `[fix, improvement]`
- **The chat no longer refuses questions it was never asked to refuse**: Every message sent to a three.ws chat surface used to pass through a small safety classifier of ours before the actual model saw it, and when that classifier said "unsafe" you got a canned brush-off instead of an answer. It was wrong often enough to be a real problem: it judged one message at a time with no memory of the conversation, so an ordinary follow-up in a security, trading, or fiction discussion could read as alarming on its own and get blocked, and you were left staring at a refusal no model had actually made. That layer is gone from all of it: the main chat, the /chat app, the embeddable concierge, the widget chat on customer sites, and the agent-idea box on /create. Your question now goes to the model as written. If a model declines something, that is the model exercising its own judgment in its own words, and you can switch models or bring your own key. Nothing else changed: the same rate limits still apply, and the separate confirmation step before any wallet action is untouched. The one place a content check still runs is outbound: what our own official Sketchfab account publishes under the three.ws name. (`/chat`) `[improvement, fix]`
- **The embedded avatar brain is now scoped to the sites it was meant for**: Every agent and avatar embed can chat for free because the platform pays for the model behind it, and the agent owner decides which sites may run that embed and which model it uses. Both of those controls only really applied to browsers: a request that simply left out the header a browser always sends slipped past the site allowlist entirely, and any caller could ask for a pricier model than the owner had chosen. Both are closed. A request with no site header now has to sign in (a session or an API key) instead of riding on an agent id anyone could read off our public sitemap, and a model that bills our own provider keys runs only when the owner selected it in the dashboard. There is also a new platform-wide ceiling across all of this traffic combined, so no amount of spreading requests around can drain the shared budget. Nothing changes for a normal embed on an allowlisted site. (`/docs/api-reference`) `[security, fix]`
diff --git a/data/changelog.json b/data/changelog.json
index 26ffd71b2..8ca6c7ac5 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-08-07",
+ "title": "Avatars now save in a clean, neutral stance instead of a frozen animation frame",
+ "summary": "Saving an avatar in the Studio used to capture whatever the idle animation happened to be doing at that exact instant, and freeze it into the model permanently. Because the saved file carries no animation of its own, that one arbitrary frame became the avatar's pose everywhere it appeared: arms tucked in at odd angles, one side sitting differently from the other, and a different result each time you saved the same avatar. Avatars are now saved in their proper neutral pose, which is symmetric and identical on every save, so downloads, animation retargeting and clothing all start from the stance the body was actually built around. Your gallery thumbnail still shows the relaxed idle pose it always did.",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
{
"date": "2026-08-07",
"title": "The embedded avatar brain is now scoped to the sites it was meant for",
diff --git a/public/changelog.json b/public/changelog.json
index 0c99629c2..43f35374b 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,22 @@
{
- "generated_at": "2026-08-07T05:45:17.435Z",
+ "generated_at": "2026-08-07T07:36:12.108Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-08-07",
+ "type": "update",
+ "title": "Avatars now save in a clean, neutral stance instead of a frozen animation frame",
+ "summary": "Saving an avatar in the Studio used to capture whatever the idle animation happened to be doing at that exact instant, and freeze it into the model permanently. Because the saved file carries no animation of its own, that one arbitrary frame became the avatar's pose everywhere it appeared: arms tucked in at odd angles, one side sitting differently from the other, and a different result each time you saved the same avatar. Avatars are now saved in their proper neutral pose, which is symmetric and identical on every save, so downloads, animation retargeting and clothing all start from the stance the body was actually built around. Your gallery thumbnail still shows the relaxed idle pose it always did.",
+ "link": null,
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
{
"date": "2026-08-07",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 612ec82b5..f17cf5844 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,6 +6,14 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws: features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>Avatars now save in a clean, neutral stance instead of a frozen animation frame</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-08-07:Avatars now save in a clean, neutral stance instead of a frozen animation frame</guid>
+ <pubDate>Fri, 07 Aug 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Saving an avatar in the Studio used to capture whatever the idle animation happened to be doing at that exact instant, and freeze it into the model permanently. Because the saved file carries no animation of its own, that one arbitrary frame became the avatar's pose everywhere it appeared: arms tucked in at odd angles, one side sitting differently from the other, and a different result each time you saved the same avatar. Avatars are now saved in their proper neutral pose, which is symmetric and identical on every save, so downloads, animation retargeting and clothing all start from the stance the body was actually built around. Your gallery thumbnail still shows the relaxed idle pose it always did.</description>
+ </item>
<item>
<title>The chat no longer refuses questions it was never asked to refuse</title>
<link>https://three.ws/chat</link>
diff --git a/public/features.json b/public/features.json
index 6c12b010c..ddfd05c7a 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-08-07T05:45:17.424Z",
+ "generated_at": "2026-08-07T07:36:12.100Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/avatar-studio.js b/src/avatar-studio.js
index 1058ce0ae..e03bcfc0d 100644
--- a/src/avatar-studio.js
+++ b/src/avatar-studio.js
@@ -32,6 +32,7 @@ import { canonicalBoneNodesFromObject } from './animation-retarget.js';
import { saveRemoteGlbToAccount, apiFetch } from './account.js';
import { uploadAvatarSnapshot } from './voice/avatar-snapshot.js';
import { optimizeAndValidateGlb } from './avatar-studio-optimize.js';
+import { poseSkeletonsToBind, captureBoneTransforms, restoreBoneTransforms } from './glb-bind-pose.js';
import { openColorPopover, closeActivePopover } from './avatar-studio-colorpicker.js';
import {
collapseAppearance,
@@ -621,15 +622,6 @@ async function playEmote(name) {
if (activeTab === 'animate') markActiveEmote();
}
-/** Await N animation frames — used to let a crossfade land before exporting. */
-function nextFrames(n) {
- return new Promise((resolve) => {
- let left = Math.max(1, n | 0);
- const step = () => (--left <= 0 ? resolve() : requestAnimationFrame(step));
- requestAnimationFrame(step);
- });
-}
-
// ── Fetch presets ────────────────────────────────────────────────────
async function fetchPresets() {
@@ -1538,19 +1530,47 @@ async function exportSceneGlb() {
if (!scene?.root) throw new Error('Scene not ready — cannot export.');
const { GLTFExporter } = await import('three/addons/exporters/GLTFExporter.js');
const exporter = new GLTFExporter();
- const buf = await new Promise((resolve, reject) => {
- exporter.parse(
- scene.root,
- resolve,
- reject,
- {
- binary: true,
- embedImages: true,
- animations: scene._clips || [],
- },
- );
- });
- return new Blob([buf], { type: 'model/gltf-binary' });
+
+ // GLTFExporter writes each bone's *current* local transform as the exported
+ // file's rest pose, and a Studio export carries no clips, so whatever the idle
+ // happened to be doing at this instant would be frozen into the saved avatar
+ // forever. Export from the bind pose instead: symmetric, identical across
+ // repeated saves, and the neutral every downstream consumer (retargeting,
+ // garment binding, other engines) assumes.
+ //
+ // The mixer has to be stopped first, not just paused: processNodeAsync awaits
+ // per node, so a render tick landing mid-traversal would re-animate bones the
+ // exporter had not read yet and tear the pose across the skeleton.
+ const emotes = scene.getEmoteController?.();
+ emotes?.stopAll();
+ const savedBones = captureBoneTransforms(scene.root);
+ poseSkeletonsToBind(scene.root);
+
+ try {
+ const buf = await new Promise((resolve, reject) => {
+ exporter.parse(
+ scene.root,
+ resolve,
+ reject,
+ {
+ binary: true,
+ embedImages: true,
+ animations: scene._clips || [],
+ },
+ );
+ });
+ return new Blob([buf], { type: 'model/gltf-binary' });
+ } finally {
+ // Put the live scene back exactly as the user left it. The thumbnail is
+ // captured from this scene later in finishSave(), so it keeps the relaxed
+ // idle stance that the frozen-frame export was originally reaching for.
+ restoreBoneTransforms(savedBones, scene.root);
+ if (emotesReady) {
+ scene.playEmote(activeIdleClip).catch((err) => {
+ log.warn('[avatar-studio] idle resume after export failed:', err?.message);
+ });
+ }
+ }
}
function showSaveOverlay(label, sublabel) {
@@ -1631,18 +1651,6 @@ async function saveAvatar() {
// This captures all colours, morphs, and accessories already applied
// to the Three.js scene — no server-side bake needed.
updateSaveOverlay('Exporting model...', 'Capturing colours and accessories');
- // GLTFExporter bakes each bone's *current* transform into the saved rest
- // pose. Settle the rig into its chosen looping idle (not a frozen mid-emote
- // frame) and let the crossfade land before capturing, so the saved avatar's
- // first-frame / thumbnail pose is a clean relaxed stance.
- if (emotesReady) {
- try {
- await scene.playEmote(activeIdleClip);
- await nextFrames(18);
- } catch (err) {
- log.warn('[avatar-studio] idle settle before export failed:', err?.message);
- }
- }
const rawGlbBlob = await exportSceneGlb();
updateProgress(15);
diff --git a/src/glb-bind-pose.js b/src/glb-bind-pose.js
new file mode 100644
index 000000000..c56128752
--- /dev/null
+++ b/src/glb-bind-pose.js
@@ -0,0 +1,98 @@
+// Bind-pose neutralisation before a GLB export.
+//
+// GLTFExporter writes each bone's *current* local transform as the exported
+// file's rest pose. Anything the mixer was playing at the moment of export is
+// therefore frozen into the saved asset permanently, and because a Studio export
+// carries no animation clips, every later viewer renders that one frame forever.
+//
+// Avatars saved that way came out visibly wrong: measured against the base body
+// they were built from, the hands sat at 43% of their bind distance from the hips
+// (arms tucked in), and left/right asymmetry was ~20x the base's. A hand-authored
+// rest pose is symmetric; an animation frame is not, which is what gave it away.
+//
+// The fix is to reset every skeleton to the pose its own inverse bind matrices
+// describe, immediately before the export reads the graph. That is the neutral
+// the mesh was skinned against, so the saved asset is the one the rig author
+// intended: symmetric, deterministic across saves, and a correct starting point
+// for retargeting, garment binding, and any other engine that assumes a bind pose.
+//
+// Callers restore the live scene afterwards (Studio replays its idle), so this
+// only ever affects the bytes that get written, never what the user is looking at.
+//
+// Pure module (three only) so it unit-tests in Node.
+
+/**
+ * Reset every skeleton under `root` to its bind pose.
+ *
+ * `Skeleton.pose()` rebuilds each bone's local transform from the inverse bind
+ * matrices, so this is exact rather than an approximation, and it is a no-op on
+ * a skeleton already at bind. World matrices are refreshed afterwards because
+ * GLTFExporter reads the graph without ticking a render loop first.
+ *
+ * @param {import('three').Object3D} root scene graph to neutralise, mutated in place
+ * @returns {number} how many distinct skeletons were reset
+ */
+export function poseSkeletonsToBind(root) {
+ if (!root?.traverse) return 0;
+
+ const seen = new Set();
+ root.traverse((obj) => {
+ const skeleton = obj?.isSkinnedMesh ? obj.skeleton : null;
+ // One skeleton is typically shared by several primitives (body, eyes,
+ // teeth, tongue); posing it once per mesh would be wasted work.
+ if (!skeleton?.bones?.length || seen.has(skeleton)) return;
+ // A skeleton whose bone count and inverse-bind count disagree is malformed;
+ // pose() would read past the end of boneInverses and corrupt the rig.
+ if (skeleton.boneInverses?.length !== skeleton.bones.length) return;
+ seen.add(skeleton);
+ skeleton.pose();
+ });
+
+ if (seen.size > 0) root.updateMatrixWorld(true);
+ return seen.size;
+}
+
+/**
+ * Snapshot the local transform of every bone under `root`.
+ *
+ * Paired with {@link restoreBoneTransforms} so a caller can neutralise for an
+ * export and put the live scene back exactly as it was, without waiting for a
+ * clip to re-drive the rig.
+ *
+ * @param {import('three').Object3D} root
+ * @returns {Array<{bone: import('three').Bone, position: number[], quaternion: number[], scale: number[]}>}
+ */
+export function captureBoneTransforms(root) {
+ const saved = [];
+ if (!root?.traverse) return saved;
+ root.traverse((obj) => {
+ if (!obj?.isBone) return;
+ saved.push({
+ bone: obj,
+ position: obj.position.toArray(),
+ quaternion: obj.quaternion.toArray(),
+ scale: obj.scale.toArray(),
+ });
+ });
+ return saved;
+}
+
+/**
+ * Restore transforms captured by {@link captureBoneTransforms}.
+ *
+ * @param {ReturnType<typeof captureBoneTransforms>} saved
+ * @param {import('three').Object3D} [root] refreshed once at the end when given
+ * @returns {number} how many bones were restored
+ */
+export function restoreBoneTransforms(saved, root = null) {
+ if (!Array.isArray(saved)) return 0;
+ for (const entry of saved) {
+ const bone = entry?.bone;
+ if (!bone) continue;
+ bone.position.fromArray(entry.position);
+ bone.quaternion.fromArray(entry.quaternion);
+ bone.scale.fromArray(entry.scale);
+ }
+ if (root?.updateMatrixWorld && saved.length > 0) root.updateMatrixWorld(true);
+ return saved.length;
+}
diff --git a/src/voice/talk-emotes.js b/src/voice/talk-emotes.js
index 60ddf83e1..59c823c0b 100644
--- a/src/voice/talk-emotes.js
+++ b/src/voice/talk-emotes.js
@@ -66,6 +66,17 @@ export class TalkEmotes {
this._manager.mixer?.update(dt);
}
+ /**
+ * Stop every running clip so the mixer stops writing to the bones.
+ *
+ * Pausing is not enough: a paused action keeps re-applying its last evaluated
+ * pose on each tick, which would overwrite a caller that deliberately posed the
+ * rig (see src/glb-bind-pose.js, used to export a neutral GLB).
+ */
+ stopAll() {
+ this._manager.stopAll();
+ }
+
/**
* Load the manifest. Idempotent — subsequent calls return the cached promise.
* Returns true once defs are populated, false on failure (e.g. 404).
diff --git a/tests/glb-bind-pose.test.js b/tests/glb-bind-pose.test.js
new file mode 100644
index 000000000..baf2fb9a9
--- /dev/null
+++ b/tests/glb-bind-pose.test.js
@@ -0,0 +1,183 @@
+/**
+ * Bind-pose neutralisation before export: unit tests.
+ *
+ * Builds a skinned humanoid whose bind pose is a symmetric A-pose, poses it away
+ * from that bind the way a playing idle clip would, and asserts:
+ * - posing to bind restores the exact bind transforms (this is the regression
+ * guard: exported rest pose must equal the pose the mesh was skinned against);
+ * - the restored pose is symmetric, which a frozen animation frame is not;
+ * - a skeleton shared by several primitives is posed once, not once per mesh;
+ * - capture/restore round-trips so the live scene survives an export;
+ * - malformed and skeleton-free graphs are safe no-ops.
+ */
+
+import { describe, it, expect } from 'vitest';
+import { Bone, Object3D, Skeleton, SkinnedMesh, BufferGeometry, Matrix4 } from 'three';
+import {
+ poseSkeletonsToBind,
+ captureBoneTransforms,
+ restoreBoneTransforms,
+} from '../src/glb-bind-pose.js';
+
+// Symmetric A-pose humanoid: hips → (spine → each arm) + each leg. Mirrors the
+// shape of the real parametric base, where left/right offsets are exact mirrors.
+function makeRig() {
+ const root = new Object3D();
+
+ const hips = Object.assign(new Bone(), { name: 'Hips' });
+ hips.position.set(0, 0.92, 0);
+ root.add(hips);
+
+ const spine = Object.assign(new Bone(), { name: 'Spine' });
+ spine.position.set(0, 0.11, 0);
+ hips.add(spine);
+
+ const bones = [hips, spine];
+ for (const side of ['Left', 'Right']) {
+ const dir = side === 'Left' ? 1 : -1;
+
+ const arm = Object.assign(new Bone(), { name: `${side}Arm` });
+ arm.position.set(dir * 0.17, 0.29, 0);
+ spine.add(arm);
+
+ const hand = Object.assign(new Bone(), { name: `${side}Hand` });
+ // Down-and-out: the A-pose the base body is authored in.
+ hand.position.set(dir * 0.21, -0.35, 0);
+ arm.add(hand);
+
+ const leg = Object.assign(new Bone(), { name: `${side}UpLeg` });
+ leg.position.set(dir * 0.11, -0.05, 0);
+ hips.add(leg);
+
+ const foot = Object.assign(new Bone(), { name: `${side}Foot` });
+ foot.position.set(dir * 0.09, -0.8, 0);
+ leg.add(foot);
+
+ bones.push(arm, hand, leg, foot);
+ }
+
+ root.updateMatrixWorld(true);
+ // Bind the skeleton while the rig sits in that A-pose, so the inverse bind
+ // matrices describe exactly this stance.
+ const boneInverses = bones.map((b) => new Matrix4().copy(b.matrixWorld).invert());
+ const skeleton = new Skeleton(bones, boneInverses);
+
+ return { root, hips, skeleton, bones };
+}
+
+function skinnedMesh(skeleton, root) {
+ const mesh = new SkinnedMesh(new BufferGeometry());
+ root.add(mesh);
+ mesh.bind(skeleton, new Matrix4());
+ return mesh;
+}
+
+// World-space distance between two bones, which is what the pose actually looks
+// like and is invariant to where the rig sits in the scene.
+function dist(root, a, b) {
+ root.updateMatrixWorld(true);
+ return a.getWorldPosition(new (a.position.constructor)()).distanceTo(
+ b.getWorldPosition(new (b.position.constructor)()),
+ );
+}
+
+const byName = (bones, name) => bones.find((b) => b.name === name);
+
+describe('poseSkeletonsToBind', () => {
+ it('restores the exact bind pose after an animation-style pose', () => {
+ const { root, skeleton, bones } = makeRig();
+ skinnedMesh(skeleton, root);
+
+ const bindLocals = bones.map((b) => b.position.toArray().concat(b.quaternion.toArray()));
+
+ // Pose it away from bind the way a mid-idle frame does: arms swung in,
+ // asymmetrically, plus a hip weight shift.
+ byName(bones, 'LeftArm').rotation.z = 0.7;
+ byName(bones, 'RightArm').rotation.z = -0.45;
+ byName(bones, 'Hips').position.x = 0.04;
+ root.updateMatrixWorld(true);
+
+ expect(poseSkeletonsToBind(root)).toBe(1);
+
+ bones.forEach((b, i) => {
+ const now = b.position.toArray().concat(b.quaternion.toArray());
+ now.forEach((v, k) => expect(v).toBeCloseTo(bindLocals[i][k], 6));
+ });
+ });
+
+ it('leaves the rig symmetric, unlike the frozen frame it replaces', () => {
+ const { root, skeleton, bones } = makeRig();
+ skinnedMesh(skeleton, root);
+ const hips = byName(bones, 'Hips');
+ const lh = byName(bones, 'LeftHand');
+ const rh = byName(bones, 'RightHand');
+
+ byName(bones, 'LeftArm').rotation.z = 0.7;
+ byName(bones, 'RightArm').rotation.z = -0.45;
+ root.updateMatrixWorld(true);
+ const posedAsymmetry = Math.abs(dist(root, hips, lh) - dist(root, hips, rh));
+ expect(posedAsymmetry).toBeGreaterThan(0.01);
+
+ poseSkeletonsToBind(root);
+ expect(Math.abs(dist(root, hips, lh) - dist(root, hips, rh))).toBeCloseTo(0, 6);
+ });
+
+ it('poses a shared skeleton once, not once per primitive', () => {
+ const { root, skeleton } = makeRig();
+ // The real base body carries body + eyes + teeth + tongue on one skeleton.
+ skinnedMesh(skeleton, root);
+ skinnedMesh(skeleton, root);
+ skinnedMesh(skeleton, root);
+
+ expect(poseSkeletonsToBind(root)).toBe(1);
+ });
+
+ it('is a no-op on a graph with no skinned meshes', () => {
+ const root = new Object3D();
+ root.add(new Object3D());
+ expect(poseSkeletonsToBind(root)).toBe(0);
+ });
+
+ it('skips a skeleton whose inverse-bind count does not match its bones', () => {
+ const { root, skeleton, bones } = makeRig();
+ skinnedMesh(skeleton, root);
+ skeleton.boneInverses.pop();
+
+ const before = bones.map((b) => b.position.toArray());
+ expect(poseSkeletonsToBind(root)).toBe(0);
+ bones.forEach((b, i) => expect(b.position.toArray()).toEqual(before[i]));
+ });
+
+ it('tolerates a null root', () => {
+ expect(poseSkeletonsToBind(null)).toBe(0);
+ });
+});
+
+describe('captureBoneTransforms / restoreBoneTransforms', () => {
+ it('round-trips the live pose so the scene survives an export', () => {
+ const { root, skeleton, bones } = makeRig();
+ skinnedMesh(skeleton, root);
+
+ byName(bones, 'LeftArm').rotation.z = 0.7;
+ byName(bones, 'Hips').position.x = 0.04;
+ root.updateMatrixWorld(true);
+ const posed = bones.map((b) => b.position.toArray().concat(b.quaternion.toArray()));
+
+ const saved = captureBoneTransforms(root);
+ expect(saved).toHaveLength(bones.length);
+
+ poseSkeletonsToBind(root);
+ expect(restoreBoneTransforms(saved, root)).toBe(bones.length);
+
+ bones.forEach((b, i) => {
+ const now = b.position.toArray().concat(b.quaternion.toArray());
+ now.forEach((v, k) => expect(v).toBeCloseTo(posed[i][k], 6));
+ });
+ });
+
+ it('tolerates empty and malformed input', () => {
+ expect(captureBoneTransforms(null)).toEqual([]);
+ expect(restoreBoneTransforms(null)).toBe(0);
+ expect(restoreBoneTransforms([null])).toBe(1);
+ });
+});