Skip to content

Commit 1bbac46

Browse files
committed
fix(core):controls Cannot convert undefined or null to object
1 parent bcda8ec commit 1bbac46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/base/Camera.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class Camera extends BaseThree {
5050
this.scene.add(this.instance);
5151
}
5252
setControls() {
53-
const controls = this.cameraConfig.controls;
53+
const controls = this.cameraConfig.controls || {};
5454
Object.assign(this.controls!, controls);
5555
}
5656
resize() {

0 commit comments

Comments
 (0)