{"action":"created","issue":{"url":"https://api.github.com/repos/aframevr/aframe/issues/1600","repository_url":"https://api.github.com/repos/aframevr/aframe","labels_url":"https://api.github.com/repos/aframevr/aframe/issues/1600/labels{/name}","comments_url":"https://api.github.com/repos/aframevr/aframe/issues/1600/comments","events_url":"https://api.github.com/repos/aframevr/aframe/issues/1600/events","html_url":"https://github.com/aframevr/aframe/issues/1600","id":163488262,"number":1600,"title":"Problem injecting a new camera and keeping the default one","user":{"login":"fernandojsg","id":782511,"avatar_url":"https://avatars.githubusercontent.com/u/782511?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandojsg","html_url":"https://github.com/fernandojsg","followers_url":"https://api.github.com/users/fernandojsg/followers","following_url":"https://api.github.com/users/fernandojsg/following{/other_user}","gists_url":"https://api.github.com/users/fernandojsg/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandojsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandojsg/subscriptions","organizations_url":"https://api.github.com/users/fernandojsg/orgs","repos_url":"https://api.github.com/users/fernandojsg/repos","events_url":"https://api.github.com/users/fernandojsg/events{/privacy}","received_events_url":"https://api.github.com/users/fernandojsg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-01T23:12:32Z","updated_at":"2016-08-02T19:59:20Z","closed_at":null,"body":"**Description:** In the editor I inject a new camera entity that will be used as the perspective camera for the viewport. But I want to keep the default camera added in the scene, like most of the examples have.\r\nBut the problem is that the default camera will be deleted as soon as a new active camera appears in the scene:\r\nhttps://github.com/aframevr/aframe/blob/4ca3b7c5b6b1c3c7bf6043cbbd40b80e7a423aab/src/systems/camera.js#L76\r\n\r\nTo test it, just opening one example and running the following code will change the new active camera and delete the default one:\r\n```javascript\r\nvar editorCameraEl = document.createElement('a-entity');\r\neditorCameraEl.id = 'editor-camera';\r\neditorCameraEl.isEditor = true;\r\neditorCameraEl.setAttribute('camera', {far: 10000, fov: 50, near: 1, active: true});\r\ndocument.querySelector('a-scene').appendChild(editorCameraEl);\r\n```\r\n\r\nWe should be able to keep the default camera somehow, ideas?"},"comment":{"url":"https://api.github.com/repos/aframevr/aframe/issues/comments/237024924","html_url":"https://github.com/aframevr/aframe/issues/1600#issuecomment-237024924","issue_url":"https://api.github.com/repos/aframevr/aframe/issues/1600","id":237024924,"user":{"login":"ngokevin","id":674727,"avatar_url":"https://avatars.githubusercontent.com/u/674727?v=3","gravatar_id":"","url":"https://api.github.com/users/ngokevin","html_url":"https://github.com/ngokevin","followers_url":"https://api.github.com/users/ngokevin/followers","following_url":"https://api.github.com/users/ngokevin/following{/other_user}","gists_url":"https://api.github.com/users/ngokevin/gists{/gist_id}","starred_url":"https://api.github.com/users/ngokevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngokevin/subscriptions","organizations_url":"https://api.github.com/users/ngokevin/orgs","repos_url":"https://api.github.com/users/ngokevin/repos","events_url":"https://api.github.com/users/ngokevin/events{/privacy}","received_events_url":"https://api.github.com/users/ngokevin/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T19:59:20Z","updated_at":"2016-08-02T19:59:20Z","body":"Perhaps the Editor can copy the camera and re-add it."}}
{"actor":{"display_login":"ngokevin"}}