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.
- package/dist/bundle.cjs.js +1 -1
- package/dist/bundle.esm.js +1 -1
- 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);
|
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);
|