@needle-tools/three 0.146.6 → 0.146.8

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.
@@ -15,8 +15,9 @@ import {
15
15
  } from 'three';
16
16
  import * as fflate from '../libs/fflate.module.js';
17
17
 
18
- function makeNameSafe(str){
19
- return str.replace(/[^a-zA-Z0-9_]/g, '');
18
+ function makeNameSafe(str) {
19
+ // prepend "_" to fix cases where the name is just a number
20
+ return "_" + str.replace(/[^a-zA-Z0-9_]/g, '');
20
21
  }
21
22
 
22
23
  class USDZDocument {
@@ -746,7 +747,7 @@ export function buildXform( model, writer, context ) {
746
747
 
747
748
  if ( matrix.determinant() < 0 ) {
748
749
 
749
- console.warn( 'THREE.USDZExporter: USDZ does not support negative scales', path );
750
+ console.warn( 'THREE.USDZExporter: USDZ does not support negative scales', name );
750
751
 
751
752
  }
752
753
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/three",
3
- "version": "0.146.6",
3
+ "version": "0.146.8",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.js",