@babylonjs/core 5.44.0 → 5.45.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.
Files changed (38) hide show
  1. package/Audio/sound.d.ts +0 -1
  2. package/Audio/sound.js +10 -10
  3. package/Audio/sound.js.map +1 -1
  4. package/Culling/ray.js +8 -2
  5. package/Culling/ray.js.map +1 -1
  6. package/Engines/WebGPU/Extensions/engine.renderTarget.js +1 -1
  7. package/Engines/WebGPU/Extensions/engine.renderTarget.js.map +1 -1
  8. package/Engines/engine.js +11 -2
  9. package/Engines/engine.js.map +1 -1
  10. package/Engines/thinEngine.js +3 -3
  11. package/Engines/thinEngine.js.map +1 -1
  12. package/Loading/Plugins/babylonFileLoader.js +3 -0
  13. package/Loading/Plugins/babylonFileLoader.js.map +1 -1
  14. package/Materials/Textures/index.d.ts +1 -0
  15. package/Materials/Textures/index.js +1 -0
  16. package/Materials/Textures/index.js.map +1 -1
  17. package/Materials/Textures/ktx2decoderTypes.d.ts +215 -0
  18. package/Materials/Textures/ktx2decoderTypes.js +35 -0
  19. package/Materials/Textures/ktx2decoderTypes.js.map +1 -0
  20. package/Materials/Textures/texture.d.ts +1 -1
  21. package/Materials/Textures/texture.js.map +1 -1
  22. package/Maths/math.vector.js +155 -120
  23. package/Maths/math.vector.js.map +1 -1
  24. package/Meshes/mesh.js +9 -0
  25. package/Meshes/mesh.js.map +1 -1
  26. package/Meshes/transformNode.d.ts +9 -1
  27. package/Meshes/transformNode.js +22 -7
  28. package/Meshes/transformNode.js.map +1 -1
  29. package/Misc/khronosTextureContainer2.d.ts +68 -2
  30. package/Misc/khronosTextureContainer2.js +149 -1
  31. package/Misc/khronosTextureContainer2.js.map +1 -1
  32. package/Morph/morphTargetManager.d.ts +2 -0
  33. package/Morph/morphTargetManager.js +8 -0
  34. package/Morph/morphTargetManager.js.map +1 -1
  35. package/assetContainer.d.ts +16 -1
  36. package/assetContainer.js +198 -41
  37. package/assetContainer.js.map +1 -1
  38. package/package.json +1 -1
package/Meshes/mesh.js CHANGED
@@ -225,6 +225,7 @@ export class Mesh extends AbstractMesh {
225
225
  else {
226
226
  this.metadata = source.metadata;
227
227
  }
228
+ this._internalMetadata = source._internalMetadata;
228
229
  // Tags
229
230
  if (Tags && Tags.HasTags(source)) {
230
231
  Tags.AddTagsTo(this, Tags.GetTags(source, true));
@@ -3074,6 +3075,10 @@ export class Mesh extends AbstractMesh {
3074
3075
  if (instance.metadata) {
3075
3076
  serializationInstance.metadata = instance.metadata;
3076
3077
  }
3078
+ // Action Manager
3079
+ if (instance.actionManager) {
3080
+ serializationInstance.actions = instance.actionManager.serialize(instance.name);
3081
+ }
3077
3082
  serializationObject.instances.push(serializationInstance);
3078
3083
  // Animations
3079
3084
  SerializationHelper.AppendSerializedAnimations(instance, serializationInstance);
@@ -3430,6 +3435,10 @@ export class Mesh extends AbstractMesh {
3430
3435
  if (parsedInstance.physicsImpostor) {
3431
3436
  Mesh._PhysicsImpostorParser(scene, instance, parsedInstance);
3432
3437
  }
3438
+ // Actions
3439
+ if (parsedInstance.actions !== undefined) {
3440
+ instance._waitingData.actions = parsedInstance.actions;
3441
+ }
3433
3442
  // Animation
3434
3443
  if (parsedInstance.animations) {
3435
3444
  for (let animationIndex = 0; animationIndex < parsedInstance.animations.length; animationIndex++) {