@babylonjs/core 6.33.2 → 6.34.0

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.
@@ -1221,6 +1221,7 @@ export class AbstractMesh extends TransformNode {
1221
1221
  let faceIndexCount = 0;
1222
1222
  let positionIndex = 0;
1223
1223
  for (let vertexCount = 0; vertexCount < data.length; vertexCount++) {
1224
+ let value = data[vertexCount];
1224
1225
  for (let targetCount = 0; targetCount < this.morphTargetManager.numTargets; targetCount++) {
1225
1226
  const targetMorph = this.morphTargetManager.getTarget(targetCount);
1226
1227
  const influence = targetMorph.influence;
@@ -1241,10 +1242,11 @@ export class AbstractMesh extends TransformNode {
1241
1242
  break;
1242
1243
  }
1243
1244
  if (morphTargetData) {
1244
- data[vertexCount] += (morphTargetData[vertexCount] - data[vertexCount]) * influence;
1245
+ value += (morphTargetData[vertexCount] - data[vertexCount]) * influence;
1245
1246
  }
1246
1247
  }
1247
1248
  }
1249
+ data[vertexCount] = value;
1248
1250
  faceIndexCount++;
1249
1251
  if (kind === VertexBuffer.PositionKind) {
1250
1252
  if (this._positions && faceIndexCount === 3) {