{"action":"closed","issue":{"url":"https://api.github.com/repos/blendfx/blender/issues/1","repository_url":"https://api.github.com/repos/blendfx/blender","labels_url":"https://api.github.com/repos/blendfx/blender/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/blendfx/blender/issues/1/comments","events_url":"https://api.github.com/repos/blendfx/blender/issues/1/events","html_url":"https://github.com/blendfx/blender/issues/1","id":212582169,"number":1,"title":"Improved class registration","user":{"login":"ekaj2","id":20780097,"avatar_url":"https://avatars1.githubusercontent.com/u/20780097?v=3","gravatar_id":"","url":"https://api.github.com/users/ekaj2","html_url":"https://github.com/ekaj2","followers_url":"https://api.github.com/users/ekaj2/followers","following_url":"https://api.github.com/users/ekaj2/following{/other_user}","gists_url":"https://api.github.com/users/ekaj2/gists{/gist_id}","starred_url":"https://api.github.com/users/ekaj2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekaj2/subscriptions","organizations_url":"https://api.github.com/users/ekaj2/orgs","repos_url":"https://api.github.com/users/ekaj2/repos","events_url":"https://api.github.com/users/ekaj2/events{/privacy}","received_events_url":"https://api.github.com/users/ekaj2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-07T22:41:31Z","updated_at":"2017-03-13T13:58:29Z","closed_at":"2017-03-13T13:58:29Z","body":"To simplify class registration, try something like this:\r\n\r\n```\r\nclasses = (ClassA, ClassB, ClassC)\r\n\r\ndef register():\r\n    for i in classes:\r\n        register_class(i)\r\n\r\ndef unregister():\r\n    for i in classes:\r\n        unregister_class(i)\r\n\r\n```\r\n\r\nOf course, to do it this way, you'd need to import:\r\n\r\n`from bpy.utils import register_class, unregister_class`"}}
{"actor":{"display_login":"blendfx"}}