We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0253cbe + 92ca1a1 commit ea1630dCopy full SHA for ea1630d
src/components/body/body.js
@@ -71,12 +71,17 @@ var Body = {
71
type: ShapeType[data.shape.toUpperCase()]
72
});
73
74
- var { shape, offset, orientation } = mesh2shape(this.el.object3D, options);
+ const shapeInfo = mesh2shape(this.el.object3D, options);
75
+ let shape, offset, orientation;
76
+ if (shapeInfo) {
77
+ ({ shape, offset, orientation } = shapeInfo);
78
+ }
79
80
if (!shape) {
81
el.addEventListener('object3dset', this.initBody.bind(this));
82
return;
83
}
84
+
85
this.body.addShape(shape, offset, orientation);
86
87
// Show wireframe
0 commit comments