@babylonjs/core 9.6.0 → 9.6.2

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.
@@ -1775,7 +1775,16 @@ export class NodeMaterial extends NodeMaterialBase {
1775
1775
  }
1776
1776
  const id = this.id;
1777
1777
  const uniqueId = this.uniqueId;
1778
+ const previousImageProcessingConfiguration = this._imageProcessingConfiguration;
1779
+ const previousImageProcessingObserver = this._imageProcessingObserver;
1780
+ const hasSerializedImageProcessingConfiguration = Object.prototype.hasOwnProperty.call(source, "_imageProcessingConfiguration");
1778
1781
  SerializationHelper.ParseProperties(source, this, this.getScene(), rootUrl);
1782
+ const parsedImageProcessingConfiguration = this._imageProcessingConfiguration;
1783
+ if (hasSerializedImageProcessingConfiguration) {
1784
+ this._imageProcessingConfiguration = previousImageProcessingConfiguration;
1785
+ this._imageProcessingObserver = previousImageProcessingObserver;
1786
+ this._attachImageProcessingConfiguration(parsedImageProcessingConfiguration);
1787
+ }
1779
1788
  this.id = id;
1780
1789
  this.uniqueId = uniqueId;
1781
1790
  const map = {};