@babylonjs/core 7.53.1 → 7.53.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.
package/scene.d.ts CHANGED
@@ -129,6 +129,7 @@ export declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetCont
129
129
  * @returns The default material
130
130
  */
131
131
  static DefaultMaterialFactory(scene: Scene): Material;
132
+ private static readonly _OriginalDefaultMaterialFactory;
132
133
  /**
133
134
  * Factory used to create the a collision coordinator.
134
135
  * @returns The collision coordinator
@@ -874,6 +875,8 @@ export declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetCont
874
875
  /** Gets or sets the current active camera */
875
876
  get activeCamera(): Nullable<Camera>;
876
877
  set activeCamera(value: Nullable<Camera>);
878
+ /** @internal */
879
+ get _hasDefaultMaterial(): boolean;
877
880
  private _defaultMaterial;
878
881
  /** The default material used on meshes when no material is affected */
879
882
  get defaultMaterial(): Material;
package/scene.js CHANGED
@@ -524,6 +524,10 @@ export class Scene {
524
524
  this._activeCamera = value;
525
525
  this.onActiveCameraChanged.notifyObservers(this);
526
526
  }
527
+ /** @internal */
528
+ get _hasDefaultMaterial() {
529
+ return Scene.DefaultMaterialFactory !== Scene._OriginalDefaultMaterialFactory;
530
+ }
527
531
  /** The default material used on meshes when no material is affected */
528
532
  get defaultMaterial() {
529
533
  if (!this._defaultMaterial) {
@@ -4942,6 +4946,7 @@ Scene.MinDeltaTime = 1.0;
4942
4946
  * @see https://doc.babylonjs.com/features/featuresDeepDive/animation/advanced_animations#deterministic-lockstep
4943
4947
  */
4944
4948
  Scene.MaxDeltaTime = 1000.0;
4949
+ Scene._OriginalDefaultMaterialFactory = Scene.DefaultMaterialFactory;
4945
4950
  // Register Class Name
4946
4951
  RegisterClass("BABYLON.Scene", Scene);
4947
4952
  //# sourceMappingURL=scene.js.map