@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
|
-
|
|
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',
|
|
750
|
+
console.warn( 'THREE.USDZExporter: USDZ does not support negative scales', name );
|
|
750
751
|
|
|
751
752
|
}
|
|
752
753
|
|