@babylonjs/core 8.31.3 → 8.32.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.
@@ -133,11 +133,6 @@ declare class _InternalAbstractMeshDataInfo {
133
133
  * We use that as a clue to force the material to sideOrientation = null
134
134
  */
135
135
  _sideOrientationHint: boolean;
136
- /**
137
- * @internal
138
- * if this is set to true, the mesh will be visible only if its parent(s) are also visible
139
- */
140
- _inheritVisibility: boolean;
141
136
  /**
142
137
  * Used in frame graph mode only, to know which meshes to update when in frozen mode
143
138
  */
@@ -321,17 +316,6 @@ export declare abstract class AbstractMesh extends TransformNode implements IDis
321
316
  * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/advanced/transparent_rendering#alpha-index
322
317
  */
323
318
  alphaIndex: number;
324
- /**
325
- * If set to true, a mesh will only be visible only if its parent(s) are also visible (default is false)
326
- */
327
- get inheritVisibility(): boolean;
328
- set inheritVisibility(value: boolean);
329
- private _isVisible;
330
- /**
331
- * Gets or sets a boolean indicating if the mesh is visible (renderable). Default is true
332
- */
333
- get isVisible(): boolean;
334
- set isVisible(value: boolean);
335
319
  /**
336
320
  * Gets or sets a boolean indicating if the mesh can be picked (by scene.pick for instance or through actions). Default is true
337
321
  */
@@ -151,11 +151,6 @@ class _InternalAbstractMeshDataInfo {
151
151
  * We use that as a clue to force the material to sideOrientation = null
152
152
  */
153
153
  this._sideOrientationHint = false;
154
- /**
155
- * @internal
156
- * if this is set to true, the mesh will be visible only if its parent(s) are also visible
157
- */
158
- this._inheritVisibility = false;
159
154
  /**
160
155
  * Used in frame graph mode only, to know which meshes to update when in frozen mode
161
156
  */
@@ -343,37 +338,6 @@ export class AbstractMesh extends TransformNode {
343
338
  });
344
339
  }
345
340
  }
346
- /**
347
- * If set to true, a mesh will only be visible only if its parent(s) are also visible (default is false)
348
- */
349
- get inheritVisibility() {
350
- return this._internalAbstractMeshDataInfo._inheritVisibility;
351
- }
352
- set inheritVisibility(value) {
353
- this._internalAbstractMeshDataInfo._inheritVisibility = value;
354
- }
355
- /**
356
- * Gets or sets a boolean indicating if the mesh is visible (renderable). Default is true
357
- */
358
- get isVisible() {
359
- if (!this._isVisible || !this.inheritVisibility || !this._parentNode) {
360
- return this._isVisible;
361
- }
362
- if (this._isVisible) {
363
- let parent = this._parentNode;
364
- while (parent) {
365
- const parentVisible = parent.isVisible;
366
- if (typeof parentVisible !== "undefined") {
367
- return parentVisible;
368
- }
369
- parent = parent.parent;
370
- }
371
- }
372
- return this._isVisible;
373
- }
374
- set isVisible(value) {
375
- this._isVisible = value;
376
- }
377
341
  /**
378
342
  * Gets or sets the property which disables the test that is checking that the mesh under the pointer is the same than the previous time we tested for it (default: false).
379
343
  * Set this property to true if you want thin instances picking to be reported accurately when moving over the mesh.
@@ -672,7 +636,6 @@ export class AbstractMesh extends TransformNode {
672
636
  * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/advanced/transparent_rendering#alpha-index
673
637
  */
674
638
  this.alphaIndex = Number.MAX_VALUE;
675
- this._isVisible = true;
676
639
  /**
677
640
  * Gets or sets a boolean indicating if the mesh can be picked (by scene.pick for instance or through actions). Default is true
678
641
  */