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.
1 parent d9d64ab commit bdddbd7Copy full SHA for bdddbd7
src/model-mixin.vue
@@ -541,16 +541,16 @@ export default defineComponent({
541
return object;
542
},
543
addObject(object: Object3D) {
544
- const center = getCenter(object);
545
-
546
- // correction position
547
- this.wrapper.position.copy(center.negate());
548
549
this.object = object;
550
this.wrapper.add(object);
551
552
this.updateCamera();
553
this.updateModel();
+
+ const center = getCenter(object);
+ // correct position
+ this.wrapper.position.copy(center.negate());
554
555
animate() {
556
this.reqId = requestAnimationFrame(this.animate);
0 commit comments