Skip to content

Commit 92e5708

Browse files
authored
Update index.js
1 parent e4931fe commit 92e5708

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Typings/Scene/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const Soup = require('@stews/soup');
22
const aepl = require('aepl');
33
const OUT = new Soup(Object);
4+
const yaml = require('js-yaml');
45

56

67
class Scene {
@@ -19,17 +20,19 @@ class Scene {
1920
return s;
2021
});
2122

23+
2224
this.occlusionCullingSettings = this.createSettingChild('OcclusionCullingSettings', stuff);
2325
this.renderSettings = this.createSettingChild('RenderSettings', stuff);
2426
this.lightmapSettings = this.createSettingChild('LightmapSettings', stuff);
25-
this.navMeshSettings = this.createSettingChild('NavMeshSettings', stuff);
27+
this.NavMeshSettings = this.createSettingChild('NavMeshSettings', stuff);
2628

2729
stuff.shift(); stuff.shift(); stuff.shift(); stuff.shift();
2830
}
2931

3032
createSettingChild(setting, settings) {
3133
let thing = settings.filter( s => s[0].includes(setting))[0];
32-
return new this.parent[setting](thing);
34+
let stuff = yaml.load(thing.join("\n"));
35+
return new this.parent[setting](stuff[setting]);
3336
}
3437
}
3538

0 commit comments

Comments
 (0)