lythreeframe 1.0.51 → 1.0.52

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.
@@ -568,7 +568,7 @@ class SceneComponent extends Component {
568
568
  throw Error("newComponent threeObject is invalid");
569
569
  }
570
570
  newComponent.parentActor = this.parentActor;
571
- if (attachmentRule = exports.AttachmentRules.KeepWorld) {
571
+ if (attachmentRule === exports.AttachmentRules.KeepWorld) {
572
572
  let worldMatrix = newComponent.getWorldMatrix();
573
573
  this.threeObject.add(newComponent.threeObject);
574
574
  newComponent.setWorldMatrix(worldMatrix);
@@ -566,7 +566,7 @@ class SceneComponent extends Component {
566
566
  throw Error("newComponent threeObject is invalid");
567
567
  }
568
568
  newComponent.parentActor = this.parentActor;
569
- if (attachmentRule = AttachmentRules.KeepWorld) {
569
+ if (attachmentRule === AttachmentRules.KeepWorld) {
570
570
  let worldMatrix = newComponent.getWorldMatrix();
571
571
  this.threeObject.add(newComponent.threeObject);
572
572
  newComponent.setWorldMatrix(worldMatrix);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",