@lukekaalim/act-three 8.0.1 → 8.0.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lukekaalim/act-three
2
2
 
3
+ ## 8.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 36412c6: Fix issue with threejs builder trying to build non-primirive elements
8
+
3
9
  ## 8.0.1
4
10
 
5
11
  ### Patch Changes
package/builder.ts CHANGED
@@ -9,7 +9,9 @@ export const createThreeJSBuilder = (rootObject: Object3D | null = null): NodeBu
9
9
  roots: new Set(['threejs']),
10
10
 
11
11
  create(element) {
12
- return registry.create(element);
12
+ if (typeof element.type === 'string')
13
+ return registry.create(element);
14
+ return null;
13
15
  },
14
16
  update(el, next, prev) {
15
17
  registry.update(el, next, prev);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lukekaalim/act-three",
3
3
  "main": "index.ts",
4
4
  "type": "module",
5
- "version": "8.0.1",
5
+ "version": "8.0.2",
6
6
  "dependencies": {
7
7
  "@lukekaalim/act": "^4.3.0",
8
8
  "@lukekaalim/act-backstage": "^3.2.0",