|
@@ -815,6 +815,7 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
* Returns a string which contains the list of existing `kinds` of Vertex Data associated with this mesh.
|
|
* Returns a string which contains the list of existing `kinds` of Vertex Data associated with this mesh.
|
|
* @param kind defines which buffer to read from (positions, indices, normals, etc). Possible `kind` values :
|
|
* @param kind defines which buffer to read from (positions, indices, normals, etc). Possible `kind` values :
|
|
* - VertexBuffer.PositionKind
|
|
* - VertexBuffer.PositionKind
|
|
|
|
+ * - VertexBuffer.NormalKind
|
|
* - VertexBuffer.UVKind
|
|
* - VertexBuffer.UVKind
|
|
* - VertexBuffer.UV2Kind
|
|
* - VertexBuffer.UV2Kind
|
|
* - VertexBuffer.UV3Kind
|
|
* - VertexBuffer.UV3Kind
|
|
@@ -1544,8 +1545,6 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
|
|
|
|
/** @hidden */
|
|
/** @hidden */
|
|
public _freeze() {
|
|
public _freeze() {
|
|
- this._instanceDataStorage.isFrozen = true;
|
|
|
|
-
|
|
|
|
if (!this.subMeshes) {
|
|
if (!this.subMeshes) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -1554,6 +1553,9 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
|
|
for (var index = 0; index < this.subMeshes.length; index++) {
|
|
for (var index = 0; index < this.subMeshes.length; index++) {
|
|
this._getInstancesRenderList(index);
|
|
this._getInstancesRenderList(index);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ this._effectiveMaterial = null;
|
|
|
|
+ this._instanceDataStorage.isFrozen = true;
|
|
}
|
|
}
|
|
|
|
|
|
/** @hidden */
|
|
/** @hidden */
|