Commit 921d3bc 1 parent 2f65efe commit 921d3bc Copy full SHA for 921d3bc
File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,14 @@ class SceneLoader extends Loader<Scene> {
138
138
bloomEffect . dirtIntensity = postProcessData . bloom . dirtIntensity ;
139
139
tonemappingEffect . enabled = postProcessData . tonemapping . enabled ;
140
140
tonemappingEffect . mode = postProcessData . tonemapping . mode ;
141
- // @ts -ignore
142
- // prettier-ignore
143
- const dirtTexturePromise = resourceManager . getResourceByRef < any > ( postProcessData . bloom . dirtTexture ) . then ( ( texture ) => {
144
- bloomEffect . dirtTexture = texture ;
145
- } ) ;
146
- promises . push ( dirtTexturePromise ) ;
141
+ if ( postProcessData . bloom . dirtTexture ) {
142
+ // @ts -ignore
143
+ // prettier-ignore
144
+ const dirtTexturePromise = resourceManager . getResourceByRef < any > ( postProcessData . bloom . dirtTexture ) . then ( ( texture ) => {
145
+ bloomEffect . dirtTexture = texture ;
146
+ } ) ;
147
+ promises . push ( dirtTexturePromise ) ;
148
+ }
147
149
}
148
150
149
151
return Promise . all ( promises ) . then ( ( ) => {
You can’t perform that action at this time.
0 commit comments