{"action":"created","comment":{"url":"https://api.github.com/repos/mrdoob/three.js/pulls/comments/29739071","id":29739071,"diff_hunk":"@@ -177,6 +177,23 @@ THREE.MeshPhongMaterial.prototype.toJSON = function () {\n \tif ( this.blending !== THREE.NormalBlending ) data.blending = this.blending;\n \tif ( this.side !== THREE.FrontSide ) data.side = this.side;\n \n+\tif(this.map !== null && this.map !== THREE.Texture ) data.map = this.map.uuid;","path":"src/materials/MeshPhongMaterial.js","position":4,"original_position":4,"commit_id":"ff43a9eb15a6e30777b8033416dde88cc6e299ab","original_commit_id":"ff43a9eb15a6e30777b8033416dde88cc6e299ab","user":{"login":"elephantatwork","id":1109692,"avatar_url":"https://avatars.githubusercontent.com/u/1109692?v=3","gravatar_id":"","url":"https://api.github.com/users/elephantatwork","html_url":"https://github.com/elephantatwork","followers_url":"https://api.github.com/users/elephantatwork/followers","following_url":"https://api.github.com/users/elephantatwork/following{/other_user}","gists_url":"https://api.github.com/users/elephantatwork/gists{/gist_id}","starred_url":"https://api.github.com/users/elephantatwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elephantatwork/subscriptions","organizations_url":"https://api.github.com/users/elephantatwork/orgs","repos_url":"https://api.github.com/users/elephantatwork/repos","events_url":"https://api.github.com/users/elephantatwork/events{/privacy}","received_events_url":"https://api.github.com/users/elephantatwork/received_events","type":"User","site_admin":false},"body":"It's not beautiful but it works, magically.","created_at":"2015-05-06T07:30:32Z","updated_at":"2015-05-06T07:30:32Z","html_url":"https://github.com/mrdoob/three.js/pull/6509#discussion_r29739071","pull_request_url":"https://api.github.com/repos/mrdoob/three.js/pulls/6509","_links":{"self":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/comments/29739071"},"html":{"href":"https://github.com/mrdoob/three.js/pull/6509#discussion_r29739071"},"pull_request":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/6509"}}},"pull_request":{"url":"https://api.github.com/repos/mrdoob/three.js/pulls/6509","id":34659512,"html_url":"https://github.com/mrdoob/three.js/pull/6509","diff_url":"https://github.com/mrdoob/three.js/pull/6509.diff","patch_url":"https://github.com/mrdoob/three.js/pull/6509.patch","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/6509","number":6509,"state":"open","locked":false,"title":"Texture export","user":{"login":"elephantatwork","id":1109692,"avatar_url":"https://avatars.githubusercontent.com/u/1109692?v=3","gravatar_id":"","url":"https://api.github.com/users/elephantatwork","html_url":"https://github.com/elephantatwork","followers_url":"https://api.github.com/users/elephantatwork/followers","following_url":"https://api.github.com/users/elephantatwork/following{/other_user}","gists_url":"https://api.github.com/users/elephantatwork/gists{/gist_id}","starred_url":"https://api.github.com/users/elephantatwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elephantatwork/subscriptions","organizations_url":"https://api.github.com/users/elephantatwork/orgs","repos_url":"https://api.github.com/users/elephantatwork/repos","events_url":"https://api.github.com/users/elephantatwork/events{/privacy}","received_events_url":"https://api.github.com/users/elephantatwork/received_events","type":"User","site_admin":false},"body":"Added Texture and Image export for Object3D.js\r\nThis allows the editor to store textures in base64 format inside the .json file.\r\nThat way you can safely store the textures inside the IndexedDB.\r\nFor lag reasons turning of the autosave function can be useful inside the editor.\r\n\r\nIt's working for MeshPhongMaterial at the moment.","created_at":"2015-05-04T18:07:08Z","updated_at":"2015-05-06T07:30:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7840421360db1096f8817c23e4a16c8f72bda9b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mrdoob/three.js/pulls/6509/commits","review_comments_url":"https://api.github.com/repos/mrdoob/three.js/pulls/6509/comments","review_comment_url":"https://api.github.com/repos/mrdoob/three.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/6509/comments","statuses_url":"https://api.github.com/repos/mrdoob/three.js/statuses/ff43a9eb15a6e30777b8033416dde88cc6e299ab","head":{"label":"elephantatwork:texture_export","ref":"texture_export","sha":"ff43a9eb15a6e30777b8033416dde88cc6e299ab","user":{"login":"elephantatwork","id":1109692,"avatar_url":"https://avatars.githubusercontent.com/u/1109692?v=3","gravatar_id":"","url":"https://api.github.com/users/elephantatwork","html_url":"https://github.com/elephantatwork","followers_url":"https://api.github.com/users/elephantatwork/followers","following_url":"https://api.github.com/users/elephantatwork/following{/other_user}","gists_url":"https://api.github.com/users/elephantatwork/gists{/gist_id}","starred_url":"https://api.github.com/users/elephantatwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elephantatwork/subscriptions","organizations_url":"https://api.github.com/users/elephantatwork/orgs","repos_url":"https://api.github.com/users/elephantatwork/repos","events_url":"https://api.github.com/users/elephantatwork/events{/privacy}","received_events_url":"https://api.github.com/users/elephantatwork/received_events","type":"User","site_admin":false},"repo":{"id":34260259,"name":"three.js","full_name":"elephantatwork/three.js","owner":{"login":"elephantatwork","id":1109692,"avatar_url":"https://avatars.githubusercontent.com/u/1109692?v=3","gravatar_id":"","url":"https://api.github.com/users/elephantatwork","html_url":"https://github.com/elephantatwork","followers_url":"https://api.github.com/users/elephantatwork/followers","following_url":"https://api.github.com/users/elephantatwork/following{/other_user}","gists_url":"https://api.github.com/users/elephantatwork/gists{/gist_id}","starred_url":"https://api.github.com/users/elephantatwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elephantatwork/subscriptions","organizations_url":"https://api.github.com/users/elephantatwork/orgs","repos_url":"https://api.github.com/users/elephantatwork/repos","events_url":"https://api.github.com/users/elephantatwork/events{/privacy}","received_events_url":"https://api.github.com/users/elephantatwork/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elephantatwork/three.js","description":"JavaScript 3D library.","fork":true,"url":"https://api.github.com/repos/elephantatwork/three.js","forks_url":"https://api.github.com/repos/elephantatwork/three.js/forks","keys_url":"https://api.github.com/repos/elephantatwork/three.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elephantatwork/three.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elephantatwork/three.js/teams","hooks_url":"https://api.github.com/repos/elephantatwork/three.js/hooks","issue_events_url":"https://api.github.com/repos/elephantatwork/three.js/issues/events{/number}","events_url":"https://api.github.com/repos/elephantatwork/three.js/events","assignees_url":"https://api.github.com/repos/elephantatwork/three.js/assignees{/user}","branches_url":"https://api.github.com/repos/elephantatwork/three.js/branches{/branch}","tags_url":"https://api.github.com/repos/elephantatwork/three.js/tags","blobs_url":"https://api.github.com/repos/elephantatwork/three.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elephantatwork/three.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elephantatwork/three.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/elephantatwork/three.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elephantatwork/three.js/statuses/{sha}","languages_url":"https://api.github.com/repos/elephantatwork/three.js/languages","stargazers_url":"https://api.github.com/repos/elephantatwork/three.js/stargazers","contributors_url":"https://api.github.com/repos/elephantatwork/three.js/contributors","subscribers_url":"https://api.github.com/repos/elephantatwork/three.js/subscribers","subscription_url":"https://api.github.com/repos/elephantatwork/three.js/subscription","commits_url":"https://api.github.com/repos/elephantatwork/three.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/elephantatwork/three.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/elephantatwork/three.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/elephantatwork/three.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/elephantatwork/three.js/contents/{+path}","compare_url":"https://api.github.com/repos/elephantatwork/three.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elephantatwork/three.js/merges","archive_url":"https://api.github.com/repos/elephantatwork/three.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elephantatwork/three.js/downloads","issues_url":"https://api.github.com/repos/elephantatwork/three.js/issues{/number}","pulls_url":"https://api.github.com/repos/elephantatwork/three.js/pulls{/number}","milestones_url":"https://api.github.com/repos/elephantatwork/three.js/milestones{/number}","notifications_url":"https://api.github.com/repos/elephantatwork/three.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elephantatwork/three.js/labels{/name}","releases_url":"https://api.github.com/repos/elephantatwork/three.js/releases{/id}","created_at":"2015-04-20T12:53:24Z","updated_at":"2015-04-20T17:38:51Z","pushed_at":"2015-05-04T17:51:27Z","git_url":"git://github.com/elephantatwork/three.js.git","ssh_url":"git@github.com:elephantatwork/three.js.git","clone_url":"https://github.com/elephantatwork/three.js.git","svn_url":"https://github.com/elephantatwork/three.js","homepage":"http://threejs.org/","size":322221,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mrdoob:dev","ref":"dev","sha":"dc3f2371101eaf03c9d4be9628cb1730408e12b9","user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"repo":{"id":576201,"name":"three.js","full_name":"mrdoob/three.js","owner":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrdoob/three.js","description":"JavaScript 3D library.","fork":false,"url":"https://api.github.com/repos/mrdoob/three.js","forks_url":"https://api.github.com/repos/mrdoob/three.js/forks","keys_url":"https://api.github.com/repos/mrdoob/three.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrdoob/three.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrdoob/three.js/teams","hooks_url":"https://api.github.com/repos/mrdoob/three.js/hooks","issue_events_url":"https://api.github.com/repos/mrdoob/three.js/issues/events{/number}","events_url":"https://api.github.com/repos/mrdoob/three.js/events","assignees_url":"https://api.github.com/repos/mrdoob/three.js/assignees{/user}","branches_url":"https://api.github.com/repos/mrdoob/three.js/branches{/branch}","tags_url":"https://api.github.com/repos/mrdoob/three.js/tags","blobs_url":"https://api.github.com/repos/mrdoob/three.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrdoob/three.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrdoob/three.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrdoob/three.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrdoob/three.js/statuses/{sha}","languages_url":"https://api.github.com/repos/mrdoob/three.js/languages","stargazers_url":"https://api.github.com/repos/mrdoob/three.js/stargazers","contributors_url":"https://api.github.com/repos/mrdoob/three.js/contributors","subscribers_url":"https://api.github.com/repos/mrdoob/three.js/subscribers","subscription_url":"https://api.github.com/repos/mrdoob/three.js/subscription","commits_url":"https://api.github.com/repos/mrdoob/three.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrdoob/three.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrdoob/three.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrdoob/three.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrdoob/three.js/contents/{+path}","compare_url":"https://api.github.com/repos/mrdoob/three.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrdoob/three.js/merges","archive_url":"https://api.github.com/repos/mrdoob/three.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrdoob/three.js/downloads","issues_url":"https://api.github.com/repos/mrdoob/three.js/issues{/number}","pulls_url":"https://api.github.com/repos/mrdoob/three.js/pulls{/number}","milestones_url":"https://api.github.com/repos/mrdoob/three.js/milestones{/number}","notifications_url":"https://api.github.com/repos/mrdoob/three.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrdoob/three.js/labels{/name}","releases_url":"https://api.github.com/repos/mrdoob/three.js/releases{/id}","created_at":"2010-03-23T18:58:01Z","updated_at":"2015-05-06T04:50:23Z","pushed_at":"2015-05-05T12:47:25Z","git_url":"git://github.com/mrdoob/three.js.git","ssh_url":"git@github.com:mrdoob/three.js.git","clone_url":"https://github.com/mrdoob/three.js.git","svn_url":"https://github.com/mrdoob/three.js","homepage":"http://threejs.org/","size":380171,"stargazers_count":19374,"watchers_count":19374,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":5732,"mirror_url":null,"open_issues_count":821,"forks":5732,"open_issues":821,"watchers":19374,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/6509"},"html":{"href":"https://github.com/mrdoob/three.js/pull/6509"},"issue":{"href":"https://api.github.com/repos/mrdoob/three.js/issues/6509"},"comments":{"href":"https://api.github.com/repos/mrdoob/three.js/issues/6509/comments"},"review_comments":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/6509/comments"},"review_comment":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrdoob/three.js/pulls/6509/commits"},"statuses":{"href":"https://api.github.com/repos/mrdoob/three.js/statuses/ff43a9eb15a6e30777b8033416dde88cc6e299ab"}}}}