babylonjs-loaders 8.2.0 → 8.2.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.
@@ -1766,6 +1766,14 @@ declare module BABYLON {
1766
1766
  }
1767
1767
  declare module BABYLON.GLTF2.Loader.Extensions {
1768
1768
  /**
1769
+ * Adding an exception here will break traversing through the glTF object tree.
1770
+ * This is used for properties that might not be in the glTF object model, but are optional and have a default value.
1771
+ * For example, the path /nodes/\{\}/extensions/KHR_node_visibility/visible is optional - the object can be deferred without the object fully existing.
1772
+ */
1773
+ export var OptionalPathExceptionsList: {
1774
+ regex: RegExp;
1775
+ }[];
1776
+ /**
1769
1777
  * A converter that takes a glTF Object Model JSON Pointer
1770
1778
  * and transforms it into an ObjectAccessorContainer, allowing
1771
1779
  * objects referenced in the glTF to be associated with their
@@ -3686,7 +3694,10 @@ declare module BABYLON.GLTF2.Loader.Extensions {
3686
3694
  * @param glTFObject the glTF object
3687
3695
  * @returns true if validated, false if not.
3688
3696
  */
3689
- validation?: (gltfBlock: BABYLON.GLTF2.IKHRInteractivity_Node, interactivityGraph: BABYLON.GLTF2.IKHRInteractivity_Graph, glTFObject?: BABYLON.GLTF2.Loader.IGLTF) => boolean;
3697
+ validation?: (gltfBlock: BABYLON.GLTF2.IKHRInteractivity_Node, interactivityGraph: BABYLON.GLTF2.IKHRInteractivity_Graph, glTFObject?: BABYLON.GLTF2.Loader.IGLTF) => {
3698
+ valid: boolean;
3699
+ error?: string;
3700
+ };
3690
3701
  /**
3691
3702
  * This is used if we need extra information for the constructor/options that is not provided directly by the glTF node.
3692
3703
  * This function can return more than one node, if extra nodes are needed for this block to function correctly.