diff --git a/lib/components/base-components/NormalComponent/NormalComponent.ts b/lib/components/base-components/NormalComponent/NormalComponent.ts index 15d809536..e24a39187 100644 --- a/lib/components/base-components/NormalComponent/NormalComponent.ts +++ b/lib/components/base-components/NormalComponent/NormalComponent.ts @@ -1424,6 +1424,7 @@ export class NormalComponent< footprinter_string: typeof footprint === "string" && !cadModel ? footprint : undefined, + show_as_translucent_model: this._parsedProps.showAsTranslucentModel, } as any) this.cad_component_id = cad_model.cad_component_id } diff --git a/lib/components/primitive-components/CadModel.ts b/lib/components/primitive-components/CadModel.ts index 353cf3203..e8b939bac 100644 --- a/lib/components/primitive-components/CadModel.ts +++ b/lib/components/primitive-components/CadModel.ts @@ -112,6 +112,7 @@ export class CadModel extends PrimitiveComponent { typeof props.modelUnitToMmScale === "number" ? props.modelUnitToMmScale : undefined, + show_as_translucent_model: parent._parsedProps.showAsTranslucentModel, ...urlProps, } as any) diff --git a/tests/components/primitive-components/group-rotation-for-cad-component.test.tsx b/tests/components/primitive-components/group-rotation-for-cad-component.test.tsx index 5b545cc72..e8e82eed9 100644 --- a/tests/components/primitive-components/group-rotation-for-cad-component.test.tsx +++ b/tests/components/primitive-components/group-rotation-for-cad-component.test.tsx @@ -43,6 +43,7 @@ test("group rotation on the cad model", async () => { "y": 0, "z": 45, }, + "show_as_translucent_model": undefined, "source_component_id": "source_component_0", "type": "cad_component", } diff --git a/tests/components/primitive-components/led-color-for-cad-component.test.tsx b/tests/components/primitive-components/led-color-for-cad-component.test.tsx index e5c5e63ba..b488a639a 100644 --- a/tests/components/primitive-components/led-color-for-cad-component.test.tsx +++ b/tests/components/primitive-components/led-color-for-cad-component.test.tsx @@ -37,6 +37,7 @@ test("color for cad model", async () => { "y": 0, "z": 0, }, + "show_as_translucent_model": undefined, "source_component_id": "source_component_0", "type": "cad_component", }