fix widget cloning
This commit is contained in:
parent
c9aa37831a
commit
9f74b8439a
1 changed files with 2 additions and 0 deletions
|
|
@ -237,6 +237,8 @@ class Widget {
|
||||||
]);
|
]);
|
||||||
mesh.renderOrder = 1;
|
mesh.renderOrder = 1;
|
||||||
// geometry.computeVertexNormals();
|
// geometry.computeVertexNormals();
|
||||||
|
// Clear existing groups (e.g., from cloned geometry) before adding new one
|
||||||
|
geometry.clearGroups();
|
||||||
geometry.addGroup(0, Infinity, 0);
|
geometry.addGroup(0, Infinity, 0);
|
||||||
// mesh.castShadow = true;
|
// mesh.castShadow = true;
|
||||||
// mesh.receiveShadow = true;
|
// mesh.receiveShadow = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue