lythreeframe 1.2.3 → 1.2.4
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
CHANGED
|
@@ -226,7 +226,7 @@ class SceneComponent extends Component {
|
|
|
226
226
|
let childrens = [];
|
|
227
227
|
for (let i = 0; i < this.threeObject.children.length; ++i) {
|
|
228
228
|
if (!this.threeObject.children[i].userData.LYObject) {
|
|
229
|
-
console.warn("One of children component has no parentActor", this.threeObject.children[i].userData.LYObject, this.threeObject.children[i]);
|
|
229
|
+
// console.warn("One of children component has no parentActor", this.threeObject.children[i].userData.LYObject, this.threeObject.children[i]);
|
|
230
230
|
continue;
|
|
231
231
|
}
|
|
232
232
|
if (this.threeObject.children[i].userData.LYObject.parentActor === this.parentActor) {
|
|
@@ -785,7 +785,6 @@ class MeshComponent extends SceneComponent {
|
|
|
785
785
|
matPtrs.push(ptr);
|
|
786
786
|
});
|
|
787
787
|
super(app, uuid);
|
|
788
|
-
this.obj = null;
|
|
789
788
|
this._geometryPtr = app.assetManager.addGeometryAsset(geometry);
|
|
790
789
|
this._materialPtr = matPtrs;
|
|
791
790
|
matPtrs.forEach((elem) => {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -224,7 +224,7 @@ class SceneComponent extends Component {
|
|
|
224
224
|
let childrens = [];
|
|
225
225
|
for (let i = 0; i < this.threeObject.children.length; ++i) {
|
|
226
226
|
if (!this.threeObject.children[i].userData.LYObject) {
|
|
227
|
-
console.warn("One of children component has no parentActor", this.threeObject.children[i].userData.LYObject, this.threeObject.children[i]);
|
|
227
|
+
// console.warn("One of children component has no parentActor", this.threeObject.children[i].userData.LYObject, this.threeObject.children[i]);
|
|
228
228
|
continue;
|
|
229
229
|
}
|
|
230
230
|
if (this.threeObject.children[i].userData.LYObject.parentActor === this.parentActor) {
|
|
@@ -783,7 +783,6 @@ class MeshComponent extends SceneComponent {
|
|
|
783
783
|
matPtrs.push(ptr);
|
|
784
784
|
});
|
|
785
785
|
super(app, uuid);
|
|
786
|
-
this.obj = null;
|
|
787
786
|
this._geometryPtr = app.assetManager.addGeometryAsset(geometry);
|
|
788
787
|
this._materialPtr = matPtrs;
|
|
789
788
|
matPtrs.forEach((elem) => {
|
|
@@ -4,8 +4,7 @@ import { TAssetPointer } from "../../../AssetManagement/AssetPointer/AssetPointe
|
|
|
4
4
|
import { ThreeJsApp } from "../../../ThreeJsApp";
|
|
5
5
|
export declare class MeshComponent extends SceneComponent {
|
|
6
6
|
get threeObject(): Mesh;
|
|
7
|
-
set threeObject(newThreeObject: Mesh);
|
|
8
|
-
protected obj: Mesh | null;
|
|
7
|
+
protected set threeObject(newThreeObject: Mesh);
|
|
9
8
|
get geometry(): BufferGeometry | null;
|
|
10
9
|
set geometry(geo: BufferGeometry);
|
|
11
10
|
get geometryPtr(): TAssetPointer<BufferGeometry>;
|