File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -324,12 +324,9 @@ AFRAME.registerComponent('environment', {
324
324
}
325
325
326
326
// scene lights
327
- if ( this . data . lighting !== oldData . lighting ) {
328
- this . sunlight . setAttribute ( 'light' , { type : this . data . lighting == 'point' ? 'point' : 'directional' } ) ;
329
- this . sunlight . setAttribute ( 'visible' , this . data . lighting !== 'none' ) ;
330
- this . hemilight . setAttribute ( 'visible' , this . data . lighting !== 'none' ) ;
331
- }
332
-
327
+ this . sunlight . setAttribute ( 'light' , { type : this . data . lighting == 'point' ? 'point' : 'directional' } ) ;
328
+ this . sunlight . setAttribute ( 'visible' , this . data . lighting !== 'none' ) ;
329
+ this . hemilight . setAttribute ( 'visible' , this . data . lighting !== 'none' ) ;
333
330
334
331
// check if ground geometry needs to be calculated
335
332
var updateGroundGeometry =
Original file line number Diff line number Diff line change 6
6
< meta name ="description " content ="A-Frame Environment Component ">
7
7
< meta name ="author " content ="Diego F. Goberna ">
8
8
< script src ="https://aframe.io/releases/0.7.0/aframe.min.js "> </ script >
9
- < script src ="../dist/aframe-environment-component.min.js "> </ script >
10
- <!--< script src="../index.js"></script>-- >
9
+ <!--< script src="../dist/aframe-environment-component.min.js"></script>-- >
10
+ < script src ="../index.js "> </ script >
11
11
< link href ="https://fonts.googleapis.com/css?family=Voces " rel ="stylesheet ">
12
12
13
13
< style >
You can’t perform that action at this time.
0 commit comments