File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var OrthographicCameraAutogen = require('./OrthographicCamera.autogen');
4
4
var OrthographicCameraModel = OrthographicCameraAutogen . OrthographicCameraModel . extend ( {
5
5
// push data from model to three object
6
6
syncToThreeObj : function ( force ) {
7
- OrthographicCameraAutogen . OrthographicCameraModel . prototype . syncToThreeObj . call ( this , arguments ) ;
7
+ OrthographicCameraAutogen . OrthographicCameraModel . prototype . syncToThreeObj . apply ( this , arguments ) ;
8
8
// Always update the projection matrix after setting the attributes:
9
9
this . obj . updateProjectionMatrix ( ) ;
10
10
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var PerspectiveCameraAutogen = require('./PerspectiveCamera.autogen');
4
4
var PerspectiveCameraModel = PerspectiveCameraAutogen . PerspectiveCameraModel . extend ( {
5
5
// push data from model to three object
6
6
syncToThreeObj : function ( force ) {
7
- PerspectiveCameraAutogen . PerspectiveCameraModel . prototype . syncToThreeObj . call ( this , arguments ) ;
7
+ PerspectiveCameraAutogen . PerspectiveCameraModel . prototype . syncToThreeObj . apply ( this , arguments ) ;
8
8
// Always update the projection matrix after setting the attributes:
9
9
this . obj . updateProjectionMatrix ( ) ;
10
10
}
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ var CloneArrayModel = CloneArrayAutogen.extend({
121
121
syncToThreeObj : function ( force ) {
122
122
123
123
this . _needs_rebuild = false ;
124
- CloneArrayAutogen . prototype . syncToThreeObj . call ( this , arguments ) ;
124
+ CloneArrayAutogen . prototype . syncToThreeObj . apply ( this , arguments ) ;
125
125
if ( this . _needs_rebuild ) {
126
126
this . obj . build ( ) ;
127
127
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ var TextTextureModel = TextTextureBase.extend({
18
18
19
19
// push data from model to three object
20
20
syncToThreeObj : function ( force ) {
21
- TextTextureBase . prototype . syncToThreeObj . call ( this , arguments ) ;
21
+ TextTextureBase . prototype . syncToThreeObj . apply ( this , arguments ) ;
22
22
23
23
// TODO: Use mapping of relevant properties instead of sync?
24
24
var canvas = this . buildCanvas ( ) ;
You can’t perform that action at this time.
0 commit comments