Skip to content

Commit 1d7ee68

Browse files
committed
fix serialization
1 parent 9b50715 commit 1d7ee68

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

examples/js/SpecGlossMultiUVInstanceExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ SerializationManager.prototype = {
371371
this.processFunctions.push(func)
372372
},
373373
serialize(data, meta){
374-
this.processFunctions.forEach(f=>f(data))
374+
this.processFunctions.forEach(f=>f(data,meta))
375375
return data
376376
},
377377
afterSerialize(data){

examples/serializedResult.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"glossiness": 1,
1313
"specular": 16777215,
14-
"glossinessMap": "4CBD81D6-6DEC-4B13-8B9A-3109D205B518",
14+
"glossinessMap": "2B8CE6E5-7846-4D84-B4BE-3D4211AE2BBA",
1515
"alphaMapRepeat": [
1616
1,
1717
1
@@ -77,19 +77,19 @@
7777
0
7878
],
7979
"glossinessMapRotation": 0,
80-
"uuid": "55437FF3-5A86-463E-8C5E-9E8F5290F92F",
80+
"uuid": "B1168031-2FEB-4362-BFF5-04D2B366BA17",
8181
"type": "MeshStandardMaterial",
8282
"color": 16758090,
8383
"emissive": 0,
84-
"map": "4CBD81D6-6DEC-4B13-8B9A-3109D205B518",
85-
"specularMap": "4CBD81D6-6DEC-4B13-8B9A-3109D205B518",
86-
"envMap": "32AA12E2-017E-42CA-90C4-483B95D456A5",
84+
"map": "2B8CE6E5-7846-4D84-B4BE-3D4211AE2BBA",
85+
"specularMap": "2B8CE6E5-7846-4D84-B4BE-3D4211AE2BBA",
86+
"envMap": "58FDD3E2-882B-4F66-B4E2-BAE2C367595C",
8787
"depthFunc": 3,
8888
"depthTest": true,
8989
"depthWrite": true,
9090
"textures": [
9191
{
92-
"uuid": "4CBD81D6-6DEC-4B13-8B9A-3109D205B518",
92+
"uuid": "2B8CE6E5-7846-4D84-B4BE-3D4211AE2BBA",
9393
"name": "texture",
9494
"mapping": 300,
9595
"repeat": [
@@ -114,10 +114,10 @@
114114
"magFilter": 1006,
115115
"anisotropy": 1,
116116
"flipY": true,
117-
"image": "FB5A325A-5CAA-47E7-921D-2A56C672CFCE"
117+
"image": "B440D9F5-D47E-40D1-B912-DBFF0AE719AE"
118118
},
119119
{
120-
"uuid": "32AA12E2-017E-42CA-90C4-483B95D456A5",
120+
"uuid": "58FDD3E2-882B-4F66-B4E2-BAE2C367595C",
121121
"name": "envMap",
122122
"mapping": 305,
123123
"repeat": [
@@ -142,15 +142,15 @@
142142
"magFilter": 1006,
143143
"anisotropy": 1,
144144
"flipY": true,
145-
"image": "F9CB0870-83F8-4762-961E-191FF7685340"
145+
"image": "14DDC238-F4C1-4D89-AED5-597BD2927B84"
146146
}
147147
],
148148
"images": [
149149
{
150-
"uuid": "FB5A325A-5CAA-47E7-921D-2A56C672CFCE",
150+
"uuid": "B440D9F5-D47E-40D1-B912-DBFF0AE719AE",
151151
},
152152
{
153-
"uuid": "F9CB0870-83F8-4762-961E-191FF7685340",
153+
"uuid": "14DDC238-F4C1-4D89-AED5-597BD2927B84",
154154
}
155155
]
156156
}

0 commit comments

Comments
 (0)