Explorar el Código

Fix userData serialization in GLTF export.

master
Palash Bansal hace 2 años
padre
commit
f4417bc08b
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  1. 1
    6
      src/assetmanager/export/GLTFWriter2.ts

+ 1
- 6
src/assetmanager/export/GLTFWriter2.ts Ver fichero

@@ -24,9 +24,7 @@ export class GLTFWriter2 extends GLTFExporter.Utils.GLTFWriter {
value.isTexture ||
value.isMaterial ||
value.assetType != null ||
key.startsWith('_') || // private data

key !== 'uuid' // always save uuid, even if its ignored
key.startsWith('_') // private data
) {
temp[key] = value
delete userData[key]
@@ -41,9 +39,6 @@ export class GLTFWriter2 extends GLTFExporter.Utils.GLTFWriter {
object.userData = ud2
super.serializeUserData(object, objectDef)
object.userData = userData

super.serializeUserData(object, objectDef)

}

processObjects(objects: Object3D[]) {

Cargando…
Cancelar
Guardar