@needle-tools/materialx 1.3.1 → 1.3.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/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/src/loader/loader.three.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,9 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [1.3.2] - 2025-08-12
|
|
8
|
+
- Fix: Error when MaterialX extension is not present
|
|
9
|
+
|
|
7
10
|
## [1.3.0] - 2025-08-12
|
|
8
11
|
- Change: Refactor extension to use a documents array instead of a single document, backwards compatibility is maintained
|
|
9
12
|
|
package/package.json
CHANGED
|
@@ -36,6 +36,9 @@ export class MaterialXLoader {
|
|
|
36
36
|
*/
|
|
37
37
|
get materialX_root_data() {
|
|
38
38
|
const ext = this.parser.json.extensions?.[this.name];
|
|
39
|
+
if (!ext) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
39
42
|
let result = null;
|
|
40
43
|
if ("documents" in ext && Array.isArray(ext.documents))
|
|
41
44
|
result = ext.documents;
|