Skip to content

Commit 7a3c84c

Browse files
committed
Fix controls constructor args
1 parent d54e1a3 commit 7a3c84c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/scripts/three-class-config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ module.exports = {
236236

237237
target: new Types.Vector3(0, 0, 0),
238238
},
239+
constructorArgs: ['controlling'],
239240
},
240241
FlyControls: {
241242
relativePath: './controls/FlyControls',
@@ -247,6 +248,7 @@ module.exports = {
247248
rollSpeed: new Types.Float(0.05),
248249
syncRate: new Types.Float(1.0),
249250
},
251+
constructorArgs: ['controlling'],
250252
},
251253
Picker: {
252254
relativePath: './controls/Picker',
@@ -269,6 +271,7 @@ module.exports = {
269271
propsDefinedByThree: [
270272
'distance', 'point', 'face', 'faceNormal', 'faceVertices',
271273
'faceIndex', 'object', 'picked', 'uv', 'indices'],
274+
constructorArgs: ['controlling'],
272275
},
273276

274277
BufferAttribute: {

0 commit comments

Comments
 (0)