← Commit history

components group via AppendAsync (loadModel reparented it under a normalized root, breaking animation + hover)

John Lauer ·0f67fea11e ·3mo ago ·parent 81f85fa
3 files changed +15−6
package.json+1−1
@@ -2,7 +2,7 @@   "slug": "bq25792-charger",   "title": "BQ25792 Charger",   "type": "component",-  "version": "0.1.38",+  "version": "0.1.39",   "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.",   "tags": [     "hardware"
page.json+10−3
@@ -4,9 +4,16 @@   "slug": "bq25792-charger",   "title": "BQ25792 Charger",   "brief": "Buck-boost 1S-4S battery charger board (TI BQ25792) with 14 Adom machine pins, by Adonis",-  "version": "0.1.38",+  "version": "0.1.39",   "tags": [-    "hardware"+    "adom",+    "adom-modular",+    "component",+    "charger",+    "battery",+    "bq25792",+    "power",+    "usb-c"   ],   "license": "proprietary",   "component": {@@ -49,7 +56,7 @@     "email": "[email protected]"   },   "visibility": "public",-  "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.",+  "description": "BQ25792 Charger - a buck-boost 1S-4S battery charger board (Texas Instruments BQ25792) designed by Adonis in Fusion 360, with 14 Adom machine pins for the modular stack. Interactive colored 3D model, schematic and layout views.",   "dependencies": {},   "files": [     "README.md",
readme.html+4−2
@@ -221,10 +221,12 @@ exported bodies + design rules.</p>   async function build(){     const sc=viewer.getScene();     set("loading board...");+    // components via plain AppendAsync like every other group - the bundle's loadModel+    // reparents/normalizes its model under a transformed root, which swallows our+    // local z offsets (components neither animated nor highlighted).     const compBytes=await loadPngBytes(R+"grp-components.glb.png");-    B().FilesInputStore.FilesToLoad["components.glb"]=new File([compBytes],"components.glb",{type:"model/gltf-binary"});     let pre=sc.meshes.length;-    await viewer.loadModel("file:components.glb");+    await B().SceneLoader.AppendAsync("", new File([compBytes],"components.glb",{type:"model/gltf-binary"}), sc, null, ".glb");     try{ if(viewer.toggleAxes) viewer.toggleAxes("world",false); }catch(e){}     attach("components", sc.meshes.slice(pre));