File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11const Soup = require ( '@stews/soup' ) ;
22const aepl = require ( 'aepl' ) ;
33const OUT = new Soup ( Object ) ;
4+ const yaml = require ( 'js-yaml' ) ;
45
56
67class 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
You can’t perform that action at this time.
0 commit comments