minerender 2.1.0-alpha.14 → 2.1.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +2 -4
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +2 -4
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +2 -4
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.js +2 -4
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +2 -4
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.mjs
CHANGED
|
@@ -4419,9 +4419,6 @@ var _BlockObject = class _BlockObject extends SceneObject {
|
|
|
4419
4419
|
}
|
|
4420
4420
|
}
|
|
4421
4421
|
obj.setRotation(rotation);
|
|
4422
|
-
setTimeout(() => {
|
|
4423
|
-
obj.setRotation(rotation);
|
|
4424
|
-
}, 150);
|
|
4425
4422
|
console.log(obj);
|
|
4426
4423
|
return obj;
|
|
4427
4424
|
}
|
|
@@ -4512,10 +4509,11 @@ var _BlockObject = class _BlockObject extends SceneObject {
|
|
|
4512
4509
|
}
|
|
4513
4510
|
}
|
|
4514
4511
|
setPosition(position) {
|
|
4515
|
-
|
|
4512
|
+
this.position.copy(position);
|
|
4516
4513
|
for (let model of this._models) {
|
|
4517
4514
|
model.setPosition(position);
|
|
4518
4515
|
}
|
|
4516
|
+
this.notifyDirty();
|
|
4519
4517
|
}
|
|
4520
4518
|
//TODO: should override rotation + scale methods
|
|
4521
4519
|
//TODO
|