{"action":"created","comment":{"url":"https://api.github.com/repos/le717/LDR-Importer/pulls/comments/36763935","id":36763935,"diff_hunk":"@@ -204,7 +211,7 @@ def parse_line(self, line):\n         color = line[1]\n \n         if color == '16':\n-            color = self.colour\n+            color = self.color","path":"import_ldraw.py","position":null,"original_position":59,"commit_id":"019e193b8b59c42a5ff180bd9cf3008c0ac210f8","original_commit_id":"e1f530d0d71608275b9f30129caf9b50cd14ac8e","user":{"login":"le717","id":3382464,"avatar_url":"https://avatars.githubusercontent.com/u/3382464?v=3","gravatar_id":"","url":"https://api.github.com/users/le717","html_url":"https://github.com/le717","followers_url":"https://api.github.com/users/le717/followers","following_url":"https://api.github.com/users/le717/following{/other_user}","gists_url":"https://api.github.com/users/le717/gists{/gist_id}","starred_url":"https://api.github.com/users/le717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/le717/subscriptions","organizations_url":"https://api.github.com/users/le717/orgs","repos_url":"https://api.github.com/users/le717/repos","events_url":"https://api.github.com/users/le717/events{/privacy}","received_events_url":"https://api.github.com/users/le717/received_events","type":"User","site_admin":false},"body":"Whoops, I just realized you already reverted the spellings back to the original form in your last commit. That's fine. don't change it again. :P Hopefully you understand what I meant, though. :)","created_at":"2015-08-11T16:13:03Z","updated_at":"2015-08-11T16:13:03Z","html_url":"https://github.com/le717/LDR-Importer/pull/100#discussion_r36763935","pull_request_url":"https://api.github.com/repos/le717/LDR-Importer/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/le717/LDR-Importer/pulls/comments/36763935"},"html":{"href":"https://github.com/le717/LDR-Importer/pull/100#discussion_r36763935"},"pull_request":{"href":"https://api.github.com/repos/le717/LDR-Importer/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/le717/LDR-Importer/pulls/100","id":41818408,"html_url":"https://github.com/le717/LDR-Importer/pull/100","diff_url":"https://github.com/le717/LDR-Importer/pull/100.diff","patch_url":"https://github.com/le717/LDR-Importer/pull/100.patch","issue_url":"https://api.github.com/repos/le717/LDR-Importer/issues/100","number":100,"state":"open","locked":false,"title":"First rough version of linked bricks","user":{"login":"geertdaelemans","id":11313559,"avatar_url":"https://avatars.githubusercontent.com/u/11313559?v=3","gravatar_id":"","url":"https://api.github.com/users/geertdaelemans","html_url":"https://github.com/geertdaelemans","followers_url":"https://api.github.com/users/geertdaelemans/followers","following_url":"https://api.github.com/users/geertdaelemans/following{/other_user}","gists_url":"https://api.github.com/users/geertdaelemans/gists{/gist_id}","starred_url":"https://api.github.com/users/geertdaelemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geertdaelemans/subscriptions","organizations_url":"https://api.github.com/users/geertdaelemans/orgs","repos_url":"https://api.github.com/users/geertdaelemans/repos","events_url":"https://api.github.com/users/geertdaelemans/events{/privacy}","received_events_url":"https://api.github.com/users/geertdaelemans/received_events","type":"User","site_admin":false},"body":"One thing that bothered me while using LDR-Importer (super add-on by the way...) was that after import, you loose all references to the original bricks. Changing the lay-out of one type of brick is super-tedious if you have to repeat it for every instance of that brick.\r\n\r\nTherefore...\r\n\r\nI 'tweaked' the code a bit to automatically link identical bricks. It ignores all identical meshes and renames them to the form \"brick name\"+\"colour\". An extra checkbox has been added \"Link Identical Bricks\".\r\n\r\nNote of warning: this is a 'tweak' and as such not the nicest way of implementing this feature. Just consider it a proof-of-concept. If you guys like it, I might do the effort to get it in a better shape. ;-)","created_at":"2015-08-06T18:22:58Z","updated_at":"2015-08-11T16:13:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e78eb4a93fae96810689be98caf5d117cee56348","assignee":null,"milestone":{"url":"https://api.github.com/repos/le717/LDR-Importer/milestones/6","html_url":"https://github.com/le717/LDR-Importer/milestones/1.3.0","labels_url":"https://api.github.com/repos/le717/LDR-Importer/milestones/6/labels","id":710081,"number":6,"title":"1.3.0","description":"","creator":{"login":"le717","id":3382464,"avatar_url":"https://avatars.githubusercontent.com/u/3382464?v=3","gravatar_id":"","url":"https://api.github.com/users/le717","html_url":"https://github.com/le717","followers_url":"https://api.github.com/users/le717/followers","following_url":"https://api.github.com/users/le717/following{/other_user}","gists_url":"https://api.github.com/users/le717/gists{/gist_id}","starred_url":"https://api.github.com/users/le717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/le717/subscriptions","organizations_url":"https://api.github.com/users/le717/orgs","repos_url":"https://api.github.com/users/le717/repos","events_url":"https://api.github.com/users/le717/events{/privacy}","received_events_url":"https://api.github.com/users/le717/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":7,"state":"open","created_at":"2014-07-04T03:15:34Z","updated_at":"2015-08-10T21:21:14Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/le717/LDR-Importer/pulls/100/commits","review_comments_url":"https://api.github.com/repos/le717/LDR-Importer/pulls/100/comments","review_comment_url":"https://api.github.com/repos/le717/LDR-Importer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/le717/LDR-Importer/issues/100/comments","statuses_url":"https://api.github.com/repos/le717/LDR-Importer/statuses/019e193b8b59c42a5ff180bd9cf3008c0ac210f8","head":{"label":"geertdaelemans:linked-bricks","ref":"linked-bricks","sha":"019e193b8b59c42a5ff180bd9cf3008c0ac210f8","user":{"login":"geertdaelemans","id":11313559,"avatar_url":"https://avatars.githubusercontent.com/u/11313559?v=3","gravatar_id":"","url":"https://api.github.com/users/geertdaelemans","html_url":"https://github.com/geertdaelemans","followers_url":"https://api.github.com/users/geertdaelemans/followers","following_url":"https://api.github.com/users/geertdaelemans/following{/other_user}","gists_url":"https://api.github.com/users/geertdaelemans/gists{/gist_id}","starred_url":"https://api.github.com/users/geertdaelemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geertdaelemans/subscriptions","organizations_url":"https://api.github.com/users/geertdaelemans/orgs","repos_url":"https://api.github.com/users/geertdaelemans/repos","events_url":"https://api.github.com/users/geertdaelemans/events{/privacy}","received_events_url":"https://api.github.com/users/geertdaelemans/received_events","type":"User","site_admin":false},"repo":{"id":40305301,"name":"LDR-Importer","full_name":"geertdaelemans/LDR-Importer","owner":{"login":"geertdaelemans","id":11313559,"avatar_url":"https://avatars.githubusercontent.com/u/11313559?v=3","gravatar_id":"","url":"https://api.github.com/users/geertdaelemans","html_url":"https://github.com/geertdaelemans","followers_url":"https://api.github.com/users/geertdaelemans/followers","following_url":"https://api.github.com/users/geertdaelemans/following{/other_user}","gists_url":"https://api.github.com/users/geertdaelemans/gists{/gist_id}","starred_url":"https://api.github.com/users/geertdaelemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geertdaelemans/subscriptions","organizations_url":"https://api.github.com/users/geertdaelemans/orgs","repos_url":"https://api.github.com/users/geertdaelemans/repos","events_url":"https://api.github.com/users/geertdaelemans/events{/privacy}","received_events_url":"https://api.github.com/users/geertdaelemans/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geertdaelemans/LDR-Importer","description":"Import LDraw .dat and .ldr models into Blender 3D","fork":true,"url":"https://api.github.com/repos/geertdaelemans/LDR-Importer","forks_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/forks","keys_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/teams","hooks_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/hooks","issue_events_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/issues/events{/number}","events_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/events","assignees_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/assignees{/user}","branches_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/branches{/branch}","tags_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/tags","blobs_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/git/refs{/sha}","trees_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/statuses/{sha}","languages_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/languages","stargazers_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/stargazers","contributors_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/contributors","subscribers_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/subscribers","subscription_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/subscription","commits_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/commits{/sha}","git_commits_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/git/commits{/sha}","comments_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/comments{/number}","issue_comment_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/issues/comments{/number}","contents_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/contents/{+path}","compare_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/merges","archive_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/downloads","issues_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/issues{/number}","pulls_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/pulls{/number}","milestones_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/milestones{/number}","notifications_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/labels{/name}","releases_url":"https://api.github.com/repos/geertdaelemans/LDR-Importer/releases{/id}","created_at":"2015-08-06T13:06:34Z","updated_at":"2015-08-06T13:06:35Z","pushed_at":"2015-08-10T14:15:56Z","git_url":"git://github.com/geertdaelemans/LDR-Importer.git","ssh_url":"git@github.com:geertdaelemans/LDR-Importer.git","clone_url":"https://github.com/geertdaelemans/LDR-Importer.git","svn_url":"https://github.com/geertdaelemans/LDR-Importer","homepage":"","size":420,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"le717:master","ref":"master","sha":"b998d94c40d0f86108be9faa09c1471825c0c98c","user":{"login":"le717","id":3382464,"avatar_url":"https://avatars.githubusercontent.com/u/3382464?v=3","gravatar_id":"","url":"https://api.github.com/users/le717","html_url":"https://github.com/le717","followers_url":"https://api.github.com/users/le717/followers","following_url":"https://api.github.com/users/le717/following{/other_user}","gists_url":"https://api.github.com/users/le717/gists{/gist_id}","starred_url":"https://api.github.com/users/le717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/le717/subscriptions","organizations_url":"https://api.github.com/users/le717/orgs","repos_url":"https://api.github.com/users/le717/repos","events_url":"https://api.github.com/users/le717/events{/privacy}","received_events_url":"https://api.github.com/users/le717/received_events","type":"User","site_admin":false},"repo":{"id":7843997,"name":"LDR-Importer","full_name":"le717/LDR-Importer","owner":{"login":"le717","id":3382464,"avatar_url":"https://avatars.githubusercontent.com/u/3382464?v=3","gravatar_id":"","url":"https://api.github.com/users/le717","html_url":"https://github.com/le717","followers_url":"https://api.github.com/users/le717/followers","following_url":"https://api.github.com/users/le717/following{/other_user}","gists_url":"https://api.github.com/users/le717/gists{/gist_id}","starred_url":"https://api.github.com/users/le717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/le717/subscriptions","organizations_url":"https://api.github.com/users/le717/orgs","repos_url":"https://api.github.com/users/le717/repos","events_url":"https://api.github.com/users/le717/events{/privacy}","received_events_url":"https://api.github.com/users/le717/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/le717/LDR-Importer","description":"Import LDraw .dat and .ldr models into Blender 3D","fork":false,"url":"https://api.github.com/repos/le717/LDR-Importer","forks_url":"https://api.github.com/repos/le717/LDR-Importer/forks","keys_url":"https://api.github.com/repos/le717/LDR-Importer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/le717/LDR-Importer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/le717/LDR-Importer/teams","hooks_url":"https://api.github.com/repos/le717/LDR-Importer/hooks","issue_events_url":"https://api.github.com/repos/le717/LDR-Importer/issues/events{/number}","events_url":"https://api.github.com/repos/le717/LDR-Importer/events","assignees_url":"https://api.github.com/repos/le717/LDR-Importer/assignees{/user}","branches_url":"https://api.github.com/repos/le717/LDR-Importer/branches{/branch}","tags_url":"https://api.github.com/repos/le717/LDR-Importer/tags","blobs_url":"https://api.github.com/repos/le717/LDR-Importer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/le717/LDR-Importer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/le717/LDR-Importer/git/refs{/sha}","trees_url":"https://api.github.com/repos/le717/LDR-Importer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/le717/LDR-Importer/statuses/{sha}","languages_url":"https://api.github.com/repos/le717/LDR-Importer/languages","stargazers_url":"https://api.github.com/repos/le717/LDR-Importer/stargazers","contributors_url":"https://api.github.com/repos/le717/LDR-Importer/contributors","subscribers_url":"https://api.github.com/repos/le717/LDR-Importer/subscribers","subscription_url":"https://api.github.com/repos/le717/LDR-Importer/subscription","commits_url":"https://api.github.com/repos/le717/LDR-Importer/commits{/sha}","git_commits_url":"https://api.github.com/repos/le717/LDR-Importer/git/commits{/sha}","comments_url":"https://api.github.com/repos/le717/LDR-Importer/comments{/number}","issue_comment_url":"https://api.github.com/repos/le717/LDR-Importer/issues/comments{/number}","contents_url":"https://api.github.com/repos/le717/LDR-Importer/contents/{+path}","compare_url":"https://api.github.com/repos/le717/LDR-Importer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/le717/LDR-Importer/merges","archive_url":"https://api.github.com/repos/le717/LDR-Importer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/le717/LDR-Importer/downloads","issues_url":"https://api.github.com/repos/le717/LDR-Importer/issues{/number}","pulls_url":"https://api.github.com/repos/le717/LDR-Importer/pulls{/number}","milestones_url":"https://api.github.com/repos/le717/LDR-Importer/milestones{/number}","notifications_url":"https://api.github.com/repos/le717/LDR-Importer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/le717/LDR-Importer/labels{/name}","releases_url":"https://api.github.com/repos/le717/LDR-Importer/releases{/id}","created_at":"2013-01-26T21:33:55Z","updated_at":"2015-08-01T16:53:17Z","pushed_at":"2015-08-10T21:21:01Z","git_url":"git://github.com/le717/LDR-Importer.git","ssh_url":"git@github.com:le717/LDR-Importer.git","clone_url":"https://github.com/le717/LDR-Importer.git","svn_url":"https://github.com/le717/LDR-Importer","homepage":"","size":1490,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":27,"forks":8,"open_issues":27,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/le717/LDR-Importer/pulls/100"},"html":{"href":"https://github.com/le717/LDR-Importer/pull/100"},"issue":{"href":"https://api.github.com/repos/le717/LDR-Importer/issues/100"},"comments":{"href":"https://api.github.com/repos/le717/LDR-Importer/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/le717/LDR-Importer/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/le717/LDR-Importer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/le717/LDR-Importer/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/le717/LDR-Importer/statuses/019e193b8b59c42a5ff180bd9cf3008c0ac210f8"}}}}