Skip to content

Conversation

@fernandojsg
Copy link
Member

Description:
Fixes #1500: Calls play() when we change the active camera this.activeCameraEl.play(); so it activates the controls attached to the camera (eg: look-controls)

I've also moved the emission of the camera-set-active to the end of the function. In the editor for example I was listening to that event to check if you've added a new camera so I could save it for later but switch automatically to the editor camera. The problem is that the event was emitted and after all the other cameras (including the one I wanted to set in the event) were deactivated.
So by just moving the event to the end you ensure that you've already a consistent state for all the cameras in the scene and you can do whatever you want like, in my case, switching to another default camera.

@dmarcos dmarcos merged commit 4ca3b7c into aframevr:master May 25, 2016
@fernandojsg fernandojsg deleted the cameras branch March 14, 2017 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants