diff --git a/components/model/parametric.vue b/components/model/parametric.vue index 8d2e2bf..a6ac167 100644 --- a/components/model/parametric.vue +++ b/components/model/parametric.vue @@ -1,24 +1,13 @@ + + + \ No newline at end of file diff --git a/components/model/recolor.vue b/components/model/recolor.vue new file mode 100644 index 0000000..8b99f7e --- /dev/null +++ b/components/model/recolor.vue @@ -0,0 +1,58 @@ + + \ No newline at end of file diff --git a/utils/material.ts b/utils/material.ts index 9f68345..bae1821 100644 --- a/utils/material.ts +++ b/utils/material.ts @@ -47,6 +47,6 @@ export const set_material = (scene: any, color: any, pattern: { pattern: pattern }) } } - - set_metaril_func(scene, material) + if (scene) set_metaril_func(scene, material) + else console.log(scene) } \ No newline at end of file