@colijnit/configurator 12.0.13 → 12.0.15

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.
@@ -1262,11 +1262,15 @@
1262
1262
  repeaty: index.repeat.repeaty
1263
1263
  };
1264
1264
  }
1265
- // variationSettings.settings =
1266
- // await VariationUtils.LoadFileContentFromZip(zipContent.files['repeat.json'], 'repeat.json', false) || {};
1267
1265
  variationSettings.metalness = index.metalness;
1268
1266
  variationSettings.roughness = index.roughness;
1269
- variationSettings.sheen = index.sheen;
1267
+ if (index.sheen && typeof index.sheen === 'object') {
1268
+ variationSettings.sheen = 1;
1269
+ variationSettings.sheenColor = new THREE__namespace.Color(index.sheen.r, index.sheen.g, index.sheen.b);
1270
+ }
1271
+ else {
1272
+ variationSettings.sheen = index.sheen;
1273
+ }
1270
1274
  if (index.sheenColor) {
1271
1275
  variationSettings.sheenColor = new THREE__namespace.Color(index.sheenColor.r, index.sheenColor.g, index.sheenColor.b);
1272
1276
  }