{"action":"opened","number":3186,"pull_request":{"url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3186","id":51329028,"html_url":"https://github.com/cocos2d/cocos2d-html5/pull/3186","diff_url":"https://github.com/cocos2d/cocos2d-html5/pull/3186.diff","patch_url":"https://github.com/cocos2d/cocos2d-html5/pull/3186.patch","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3186","number":3186,"state":"open","locked":false,"title":"Fixed _syncStatus of node on opacity updated.","user":{"login":"1scaR1","id":10628482,"avatar_url":"https://avatars.githubusercontent.com/u/10628482?v=3","gravatar_id":"","url":"https://api.github.com/users/1scaR1","html_url":"https://github.com/1scaR1","followers_url":"https://api.github.com/users/1scaR1/followers","following_url":"https://api.github.com/users/1scaR1/following{/other_user}","gists_url":"https://api.github.com/users/1scaR1/gists{/gist_id}","starred_url":"https://api.github.com/users/1scaR1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1scaR1/subscriptions","organizations_url":"https://api.github.com/users/1scaR1/orgs","repos_url":"https://api.github.com/users/1scaR1/repos","events_url":"https://api.github.com/users/1scaR1/events{/privacy}","received_events_url":"https://api.github.com/users/1scaR1/received_events","type":"User","site_admin":false},"body":"In some cases of updating opacity of node(scene with a lot of sprites and actions, which changes opacity) it doesn't changes. (In WebGL)\r\nI reviewed some code before optimizing of render cmd's and found that in WebGL case in **_syncStatus** function **_updateColor** is called on opacity dirty flag to(not only color dirty flag).\r\nThis PR resolves this.(and bug doesn't reproduces)\r\nP.S.\r\nI don't know how exactly reproduce this bug, because i can't found which part of my project causes it.\r\nP.P.S\r\nMay be add check if render type is WebGL and call **_updateColor** function if opacity dirty flag set only in case of WebGL?\r\n","created_at":"2015-11-20T08:23:23Z","updated_at":"2015-11-20T08:23:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3186/commits","review_comments_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3186/comments","review_comment_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3186/comments","statuses_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/statuses/a1db04988bc1654e20c9a6509100b7d015e818a6","head":{"label":"1scaR1:develop","ref":"develop","sha":"a1db04988bc1654e20c9a6509100b7d015e818a6","user":{"login":"1scaR1","id":10628482,"avatar_url":"https://avatars.githubusercontent.com/u/10628482?v=3","gravatar_id":"","url":"https://api.github.com/users/1scaR1","html_url":"https://github.com/1scaR1","followers_url":"https://api.github.com/users/1scaR1/followers","following_url":"https://api.github.com/users/1scaR1/following{/other_user}","gists_url":"https://api.github.com/users/1scaR1/gists{/gist_id}","starred_url":"https://api.github.com/users/1scaR1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1scaR1/subscriptions","organizations_url":"https://api.github.com/users/1scaR1/orgs","repos_url":"https://api.github.com/users/1scaR1/repos","events_url":"https://api.github.com/users/1scaR1/events{/privacy}","received_events_url":"https://api.github.com/users/1scaR1/received_events","type":"User","site_admin":false},"repo":{"id":45902441,"name":"cocos2d-html5","full_name":"1scaR1/cocos2d-html5","owner":{"login":"1scaR1","id":10628482,"avatar_url":"https://avatars.githubusercontent.com/u/10628482?v=3","gravatar_id":"","url":"https://api.github.com/users/1scaR1","html_url":"https://github.com/1scaR1","followers_url":"https://api.github.com/users/1scaR1/followers","following_url":"https://api.github.com/users/1scaR1/following{/other_user}","gists_url":"https://api.github.com/users/1scaR1/gists{/gist_id}","starred_url":"https://api.github.com/users/1scaR1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1scaR1/subscriptions","organizations_url":"https://api.github.com/users/1scaR1/orgs","repos_url":"https://api.github.com/users/1scaR1/repos","events_url":"https://api.github.com/users/1scaR1/events{/privacy}","received_events_url":"https://api.github.com/users/1scaR1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/1scaR1/cocos2d-html5","description":"cocos2d for Web Browsers. Built using JavaScript","fork":true,"url":"https://api.github.com/repos/1scaR1/cocos2d-html5","forks_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/forks","keys_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/teams","hooks_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/hooks","issue_events_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/issues/events{/number}","events_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/events","assignees_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/assignees{/user}","branches_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/branches{/branch}","tags_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/tags","blobs_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/refs{/sha}","trees_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/statuses/{sha}","languages_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/languages","stargazers_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/stargazers","contributors_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/contributors","subscribers_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/subscribers","subscription_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/subscription","commits_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/commits{/sha}","git_commits_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/commits{/sha}","comments_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/comments{/number}","issue_comment_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/issues/comments{/number}","contents_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/contents/{+path}","compare_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/merges","archive_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/downloads","issues_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/issues{/number}","pulls_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/pulls{/number}","milestones_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/milestones{/number}","notifications_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/labels{/name}","releases_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/releases{/id}","created_at":"2015-11-10T09:45:06Z","updated_at":"2015-11-10T09:45:11Z","pushed_at":"2015-11-20T08:12:11Z","git_url":"git://github.com/1scaR1/cocos2d-html5.git","ssh_url":"git@github.com:1scaR1/cocos2d-html5.git","clone_url":"https://github.com/1scaR1/cocos2d-html5.git","svn_url":"https://github.com/1scaR1/cocos2d-html5","homepage":"http://www.cocos2d-html5.org","size":57562,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"cocos2d:develop","ref":"develop","sha":"3473eacc1e75b5ae1444417db67f153ac341ac1a","user":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"repo":{"id":3224614,"name":"cocos2d-html5","full_name":"cocos2d/cocos2d-html5","owner":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cocos2d/cocos2d-html5","description":"cocos2d for Web Browsers. Built using JavaScript","fork":false,"url":"https://api.github.com/repos/cocos2d/cocos2d-html5","forks_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/forks","keys_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/teams","hooks_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/hooks","issue_events_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/events{/number}","events_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/events","assignees_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/assignees{/user}","branches_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/branches{/branch}","tags_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/tags","blobs_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/statuses/{sha}","languages_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/languages","stargazers_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/stargazers","contributors_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/contributors","subscribers_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/subscribers","subscription_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/subscription","commits_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/contents/{+path}","compare_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/merges","archive_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/downloads","issues_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues{/number}","pulls_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls{/number}","milestones_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/milestones{/number}","notifications_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/labels{/name}","releases_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/releases{/id}","created_at":"2012-01-20T07:31:59Z","updated_at":"2015-11-19T05:11:17Z","pushed_at":"2015-11-19T16:29:20Z","git_url":"git://github.com/cocos2d/cocos2d-html5.git","ssh_url":"git@github.com:cocos2d/cocos2d-html5.git","clone_url":"https://github.com/cocos2d/cocos2d-html5.git","svn_url":"https://github.com/cocos2d/cocos2d-html5","homepage":"http://www.cocos2d-html5.org","size":79257,"stargazers_count":1815,"watchers_count":1815,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":780,"mirror_url":null,"open_issues_count":132,"forks":780,"open_issues":132,"watchers":1815,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3186"},"html":{"href":"https://github.com/cocos2d/cocos2d-html5/pull/3186"},"issue":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3186"},"comments":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3186/comments"},"review_comments":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3186/comments"},"review_comment":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3186/commits"},"statuses":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/statuses/a1db04988bc1654e20c9a6509100b7d015e818a6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}