We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parseAsync()
1 parent 56be253 commit b09501aCopy full SHA for b09501a
1 file changed
src/loaders/nodes/NodeObjectLoader.js
@@ -89,6 +89,24 @@ class NodeObjectLoader extends ObjectLoader {
89
90
}
91
92
+ /**
93
+ * Async version of {@link NodeObjectLoader#parse}.
94
+ *
95
+ * @param {Object} json - The JSON definition
96
+ * @return {Promise<Object3D>} A Promise that resolves with the parsed 3D object.
97
+ */
98
+ async parseAsync( json ) {
99
+
100
+ this._nodesJSON = json.nodes;
101
102
+ const data = await super.parseAsync( json );
103
104
+ this._nodesJSON = null; // dispose
105
106
+ return data;
107
108
+ }
109
110
/**
111
* Parses the node objects from the given JSON and textures.
112
*
0 commit comments