@rulecad/cad 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/assembly.mjs +1 -1
  2. package/package.json +1 -1
package/lib/assembly.mjs CHANGED
@@ -91,7 +91,7 @@ export async function buildAssembly(ref, stack = [], overrides = {}, opts = {})
91
91
  const sub = it.assembly ? extra : {}; // a component's values go to its items: { cap: { units: 1.5 } }
92
92
  const key = JSON.stringify([it.object, it.variant, it.assembly, set, sub]);
93
93
  if (!built.has(key)) {
94
- if (it.assembly) built.set(key, { key, sub: await buildAssembly(`${project}/${it.assembly}`, [...stack, ref], sub, opts) });
94
+ if (it.assembly) built.set(key, { key, sub: await buildAssembly(`${project}/${it.assembly}`, [...stack, ref], sub, { ...opts, pose: undefined }) }); // a pose names the outer assembly's joints
95
95
  else {
96
96
  const [ref, named] = String(it.object).split(':'), [objName, pin] = ref.split('@'), variant = named || it.variant;
97
97
  const d = locate(`${project}/${objName}`), at = { ...(pin ? materialise(d, pin) : d), ...(variant ? { variant } : {}) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulecad/cad",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "The cad command: JSCAD designs from traceable rules, checked for printing and fit, versioned by what fits, shared as links and exported as Bambu 3MF.",
5
5
  "type": "module",
6
6
  "bin": {