lythreeframe 1.0.50 → 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.
- package/dist/bundle.cjs.js +2 -2
- package/dist/bundle.esm.js +2 -2
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -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
|
|
571
|
+
if (attachmentRule === exports.AttachmentRules.KeepWorld) {
|
|
572
572
|
let worldMatrix = newComponent.getWorldMatrix();
|
|
573
573
|
this.threeObject.add(newComponent.threeObject);
|
|
574
574
|
newComponent.setWorldMatrix(worldMatrix);
|
|
@@ -1995,7 +1995,7 @@ class Controller {
|
|
|
1995
1995
|
return this._pawn;
|
|
1996
1996
|
}
|
|
1997
1997
|
get app() {
|
|
1998
|
-
return this.
|
|
1998
|
+
return this._app;
|
|
1999
1999
|
}
|
|
2000
2000
|
get onClickNothingDelegate() {
|
|
2001
2001
|
return this._onClickNothingDelegate;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -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
|
|
569
|
+
if (attachmentRule === AttachmentRules.KeepWorld) {
|
|
570
570
|
let worldMatrix = newComponent.getWorldMatrix();
|
|
571
571
|
this.threeObject.add(newComponent.threeObject);
|
|
572
572
|
newComponent.setWorldMatrix(worldMatrix);
|
|
@@ -1993,7 +1993,7 @@ class Controller {
|
|
|
1993
1993
|
return this._pawn;
|
|
1994
1994
|
}
|
|
1995
1995
|
get app() {
|
|
1996
|
-
return this.
|
|
1996
|
+
return this._app;
|
|
1997
1997
|
}
|
|
1998
1998
|
get onClickNothingDelegate() {
|
|
1999
1999
|
return this._onClickNothingDelegate;
|