diff --git a/pages/babylonDebug.js b/pages/babylonDebug.js index ef27b3b..1f31653 100644 --- a/pages/babylonDebug.js +++ b/pages/babylonDebug.js @@ -102,7 +102,7 @@ window.BabylonDebug = function (scene) { }; function getJsonPointer(node, predicate) { - const jsonPointers = node.metadata && node.metadata.gltf && node.metadata.gltf.pointers; + const jsonPointers = node?._internalMetadata?.gltf?.pointers; if (jsonPointers) { for (const jsonPointer of jsonPointers) { if (!predicate || predicate(jsonPointer)) { diff --git a/src/gltfWindow.ts b/src/gltfWindow.ts index 9a94f3c..4774ded 100644 --- a/src/gltfWindow.ts +++ b/src/gltfWindow.ts @@ -21,7 +21,7 @@ export class GltfWindow { vscode.window.registerTreeDataProvider('gltfOutline', this._gltfOutline); this._gltfInspectData = new GltfInspectData(context, this); - this._gltfInspectData.setTreeView(vscode.window.createTreeView('gltfInspectData', { treeDataProvider: this._gltfInspectData })); + this._gltfInspectData.setTreeView(vscode.window.createTreeView('gltfInspectData', { treeDataProvider: this._gltfInspectData, canSelectMany: true })); vscode.window.onDidChangeActiveTextEditor(() => { // Wait a frame before updating to ensure all window states are updated.