kitchen-simulator 11.2.0 → 11.4.0
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.
|
@@ -895,10 +895,9 @@ export function render3DItem(element, layer, scene, sizeinfo, structure_json, is
|
|
|
895
895
|
// let normalMap = "catalog/items/doorstyle/" + doorStyles.get(keys[i]);
|
|
896
896
|
var _normalMap = doorStyles.get(keys[i]) || INITIAL_NORMAL_MAP;
|
|
897
897
|
var _mat;
|
|
898
|
-
if (_normalMap === '') {
|
|
899
|
-
var examplecolor = new Three.Color(parseInt(color.slice(1), 16)).convertLinearToSRGB();
|
|
898
|
+
if (_normalMap === '' || keys[i].includes('_handle')) {
|
|
900
899
|
_mat = new Three.MeshStandardMaterial({
|
|
901
|
-
color:
|
|
900
|
+
color: 0xffffff,
|
|
902
901
|
metalness: glossness === 1 ? params.metalness : params.metalness_glossy,
|
|
903
902
|
roughness: glossness || params.roughness
|
|
904
903
|
});
|
|
@@ -82,6 +82,7 @@ export function ccdfMapper(ccdf_list, layer) {
|
|
|
82
82
|
description: cd.description,
|
|
83
83
|
prototype: cd.prototype,
|
|
84
84
|
base: cd.base,
|
|
85
|
+
ccdf: cd.ccdf,
|
|
85
86
|
shape_svg: cd.shape_svg,
|
|
86
87
|
// If host provides cabinet base gltf/bin at CCDF top-level, prefer it.
|
|
87
88
|
gltf: (ccdf === null || ccdf === void 0 ? void 0 : ccdf.gltf) || cd.gltf,
|
|
@@ -909,10 +909,9 @@ function render3DItem(element, layer, scene, sizeinfo, structure_json, is_corner
|
|
|
909
909
|
// let normalMap = "catalog/items/doorstyle/" + doorStyles.get(keys[i]);
|
|
910
910
|
var _normalMap = doorStyles.get(keys[i]) || INITIAL_NORMAL_MAP;
|
|
911
911
|
var _mat;
|
|
912
|
-
if (_normalMap === '') {
|
|
913
|
-
var examplecolor = new Three.Color(parseInt(color.slice(1), 16)).convertLinearToSRGB();
|
|
912
|
+
if (_normalMap === '' || keys[i].includes('_handle')) {
|
|
914
913
|
_mat = new Three.MeshStandardMaterial({
|
|
915
|
-
color:
|
|
914
|
+
color: 0xffffff,
|
|
916
915
|
metalness: glossness === 1 ? params.metalness : params.metalness_glossy,
|
|
917
916
|
roughness: glossness || params.roughness
|
|
918
917
|
});
|
|
@@ -89,6 +89,7 @@ function ccdfMapper(ccdf_list, layer) {
|
|
|
89
89
|
description: cd.description,
|
|
90
90
|
prototype: cd.prototype,
|
|
91
91
|
base: cd.base,
|
|
92
|
+
ccdf: cd.ccdf,
|
|
92
93
|
shape_svg: cd.shape_svg,
|
|
93
94
|
// If host provides cabinet base gltf/bin at CCDF top-level, prefer it.
|
|
94
95
|
gltf: (ccdf === null || ccdf === void 0 ? void 0 : ccdf.gltf) || cd.gltf,
|