jagenjo / webglstudio.js

A full open source 3D graphics editor in the browser, with scene editor, coding pad, graph editor, virtual file system, and many features more.
MIT License
5.21k stars 605 forks source link

no_button_action in CameraController of root camera not working #51

Open KnightCoder opened 4 years ago

KnightCoder commented 4 years ago

I added a CameraController to the root camera however, when I try to set no_button_action to "Rotate Horizontal" it seems to crash the editor.

I noticed that it is throwing error "Uncaught TypeError: Cannot read property 'set' of undefined" in the update() function in the camera.js file.

Basically value of destination_eye in the following line of code is undefined camera._editor.destination_eye.set( camera.eye );

My intention of adding no_button_action is in the hope that it will rotate the scene on load when the user is not interacting with the scene. Also please tell me whether this understanding correct?