{"action":"created","comment":{"url":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/comments/54325856","id":54325856,"diff_hunk":"@@ -322,41 +321,42 @@ public class EyeTextureData {\n     }\n   }\n \n-  \n   void OnPreRender() {\n-    Controller controller = provider.GetLeapController();\n-    long start = controller.Now();\n-    if (!_requestedImage.IsComplete) _lateImages++;\n-    while (!_requestedImage.IsComplete) {\n-      if (controller.Now() - start > 9000) break;\n-    }\n-    if (_requestedImage.IsComplete) {\n-      //Debug.Log(\"controller_.Now():\" + controller.Now() + \" - CurrentFrame.Timestamp:\" + image.Timestamp + \" = \" + (controller.Now() - image.Timestamp));\n-      //Debug.Log(\"LeapImageRetriever.OnPreRender image.SequenceId: \" + image.SequenceId);\n-      if (_eyeTextureData.CheckStale(_requestedImage, _requestedImage)) {\n-        _eyeTextureData.Reconstruct(_requestedImage, _requestedImage);\n+    if(ImagesEnabled){\n+      Controller controller = provider.GetLeapController();\n+      long start = controller.Now();\n+      while (!_requestedImage.IsComplete) {\n+        if (controller.Now() - start > ImageTimeout) break;\n+      }\n+      if (_requestedImage.IsComplete) {\n+        if (_eyeTextureData.CheckStale(_requestedImage, _requestedImage)) {\n+          _eyeTextureData.Reconstruct(_requestedImage, _requestedImage);\n+        }\n+        _eyeTextureData.UpdateTextures(_requestedImage, _requestedImage);\n+      } else if(!checkingImageState){\n+        StartCoroutine(CheckImageMode(2));\n+        checkingImageState = true;","path":"Assets/LeapMotion/Scripts/LeapImageRetriever.cs","position":null,"original_position":101,"commit_id":"24a93964d4fc62634921d7763ba9649fb59c1ccf","original_commit_id":"e86e25f0c65cce08dced2c152cc1a6bfedddf4f3","user":{"login":"jo3w4rd","id":2576138,"avatar_url":"https://avatars.githubusercontent.com/u/2576138?v=3","gravatar_id":"","url":"https://api.github.com/users/jo3w4rd","html_url":"https://github.com/jo3w4rd","followers_url":"https://api.github.com/users/jo3w4rd/followers","following_url":"https://api.github.com/users/jo3w4rd/following{/other_user}","gists_url":"https://api.github.com/users/jo3w4rd/gists{/gist_id}","starred_url":"https://api.github.com/users/jo3w4rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jo3w4rd/subscriptions","organizations_url":"https://api.github.com/users/jo3w4rd/orgs","repos_url":"https://api.github.com/users/jo3w4rd/repos","events_url":"https://api.github.com/users/jo3w4rd/events{/privacy}","received_events_url":"https://api.github.com/users/jo3w4rd/received_events","type":"User","site_admin":false},"body":"Done.\r\n","created_at":"2016-02-27T02:13:56Z","updated_at":"2016-02-27T02:13:56Z","html_url":"https://github.com/leapmotion-examples/UnityModules/pull/18#discussion_r54325856","pull_request_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/comments/54325856"},"html":{"href":"https://github.com/leapmotion-examples/UnityModules/pull/18#discussion_r54325856"},"pull_request":{"href":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/18","id":60926772,"html_url":"https://github.com/leapmotion-examples/UnityModules/pull/18","diff_url":"https://github.com/leapmotion-examples/UnityModules/pull/18.diff","patch_url":"https://github.com/leapmotion-examples/UnityModules/pull/18.patch","issue_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues/18","number":18,"state":"open","locked":false,"title":"Fix check image setting","user":{"login":"jo3w4rd","id":2576138,"avatar_url":"https://avatars.githubusercontent.com/u/2576138?v=3","gravatar_id":"","url":"https://api.github.com/users/jo3w4rd","html_url":"https://github.com/jo3w4rd","followers_url":"https://api.github.com/users/jo3w4rd/followers","following_url":"https://api.github.com/users/jo3w4rd/following{/other_user}","gists_url":"https://api.github.com/users/jo3w4rd/gists{/gist_id}","starred_url":"https://api.github.com/users/jo3w4rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jo3w4rd/subscriptions","organizations_url":"https://api.github.com/users/jo3w4rd/orgs","repos_url":"https://api.github.com/users/jo3w4rd/repos","events_url":"https://api.github.com/users/jo3w4rd/events{/privacy}","received_events_url":"https://api.github.com/users/jo3w4rd/received_events","type":"User","site_admin":false},"body":"Added switch on whether to request images. \r\nThis switch is checked when LeapImageRetriever is enabled (in controller connect event).\r\nA coroutine is started to poll the setting if images are turned off and if an image fails to complete. \r\n\r\n- [ ] Fixes #9\r\n","created_at":"2016-02-27T00:45:03Z","updated_at":"2016-02-27T02:13:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4234743973f0759d0fb03bbdad598c8bf760594c","assignee":{"login":"Amarcolina","id":5723312,"avatar_url":"https://avatars.githubusercontent.com/u/5723312?v=3","gravatar_id":"","url":"https://api.github.com/users/Amarcolina","html_url":"https://github.com/Amarcolina","followers_url":"https://api.github.com/users/Amarcolina/followers","following_url":"https://api.github.com/users/Amarcolina/following{/other_user}","gists_url":"https://api.github.com/users/Amarcolina/gists{/gist_id}","starred_url":"https://api.github.com/users/Amarcolina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amarcolina/subscriptions","organizations_url":"https://api.github.com/users/Amarcolina/orgs","repos_url":"https://api.github.com/users/Amarcolina/repos","events_url":"https://api.github.com/users/Amarcolina/events{/privacy}","received_events_url":"https://api.github.com/users/Amarcolina/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/18/commits","review_comments_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/18/comments","review_comment_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues/18/comments","statuses_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/statuses/24a93964d4fc62634921d7763ba9649fb59c1ccf","head":{"label":"leapmotion-examples:fix-check-image-setting","ref":"fix-check-image-setting","sha":"24a93964d4fc62634921d7763ba9649fb59c1ccf","user":{"login":"leapmotion-examples","id":6887202,"avatar_url":"https://avatars.githubusercontent.com/u/6887202?v=3","gravatar_id":"","url":"https://api.github.com/users/leapmotion-examples","html_url":"https://github.com/leapmotion-examples","followers_url":"https://api.github.com/users/leapmotion-examples/followers","following_url":"https://api.github.com/users/leapmotion-examples/following{/other_user}","gists_url":"https://api.github.com/users/leapmotion-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/leapmotion-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapmotion-examples/subscriptions","organizations_url":"https://api.github.com/users/leapmotion-examples/orgs","repos_url":"https://api.github.com/users/leapmotion-examples/repos","events_url":"https://api.github.com/users/leapmotion-examples/events{/privacy}","received_events_url":"https://api.github.com/users/leapmotion-examples/received_events","type":"Organization","site_admin":false},"repo":{"id":52047290,"name":"UnityModules","full_name":"leapmotion-examples/UnityModules","owner":{"login":"leapmotion-examples","id":6887202,"avatar_url":"https://avatars.githubusercontent.com/u/6887202?v=3","gravatar_id":"","url":"https://api.github.com/users/leapmotion-examples","html_url":"https://github.com/leapmotion-examples","followers_url":"https://api.github.com/users/leapmotion-examples/followers","following_url":"https://api.github.com/users/leapmotion-examples/following{/other_user}","gists_url":"https://api.github.com/users/leapmotion-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/leapmotion-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapmotion-examples/subscriptions","organizations_url":"https://api.github.com/users/leapmotion-examples/orgs","repos_url":"https://api.github.com/users/leapmotion-examples/repos","events_url":"https://api.github.com/users/leapmotion-examples/events{/privacy}","received_events_url":"https://api.github.com/users/leapmotion-examples/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapmotion-examples/UnityModules","description":"Repository containing all Leap Motion asset packages","fork":false,"url":"https://api.github.com/repos/leapmotion-examples/UnityModules","forks_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/forks","keys_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/teams","hooks_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/hooks","issue_events_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues/events{/number}","events_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/events","assignees_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/assignees{/user}","branches_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/branches{/branch}","tags_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/tags","blobs_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/statuses/{sha}","languages_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/languages","stargazers_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/stargazers","contributors_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/contributors","subscribers_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/subscribers","subscription_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/subscription","commits_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/contents/{+path}","compare_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/merges","archive_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/downloads","issues_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues{/number}","pulls_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls{/number}","milestones_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/milestones{/number}","notifications_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/labels{/name}","releases_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/releases{/id}","deployments_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/deployments","created_at":"2016-02-18T23:42:29Z","updated_at":"2016-02-24T02:48:20Z","pushed_at":"2016-02-27T02:13:22Z","git_url":"git://github.com/leapmotion-examples/UnityModules.git","ssh_url":"git@github.com:leapmotion-examples/UnityModules.git","clone_url":"https://github.com/leapmotion-examples/UnityModules.git","svn_url":"https://github.com/leapmotion-examples/UnityModules","homepage":null,"size":6012,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":15,"forks":1,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"leapmotion-examples:develop","ref":"develop","sha":"bab092903ff6b7f93767d97f8ea1881315b706a4","user":{"login":"leapmotion-examples","id":6887202,"avatar_url":"https://avatars.githubusercontent.com/u/6887202?v=3","gravatar_id":"","url":"https://api.github.com/users/leapmotion-examples","html_url":"https://github.com/leapmotion-examples","followers_url":"https://api.github.com/users/leapmotion-examples/followers","following_url":"https://api.github.com/users/leapmotion-examples/following{/other_user}","gists_url":"https://api.github.com/users/leapmotion-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/leapmotion-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapmotion-examples/subscriptions","organizations_url":"https://api.github.com/users/leapmotion-examples/orgs","repos_url":"https://api.github.com/users/leapmotion-examples/repos","events_url":"https://api.github.com/users/leapmotion-examples/events{/privacy}","received_events_url":"https://api.github.com/users/leapmotion-examples/received_events","type":"Organization","site_admin":false},"repo":{"id":52047290,"name":"UnityModules","full_name":"leapmotion-examples/UnityModules","owner":{"login":"leapmotion-examples","id":6887202,"avatar_url":"https://avatars.githubusercontent.com/u/6887202?v=3","gravatar_id":"","url":"https://api.github.com/users/leapmotion-examples","html_url":"https://github.com/leapmotion-examples","followers_url":"https://api.github.com/users/leapmotion-examples/followers","following_url":"https://api.github.com/users/leapmotion-examples/following{/other_user}","gists_url":"https://api.github.com/users/leapmotion-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/leapmotion-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapmotion-examples/subscriptions","organizations_url":"https://api.github.com/users/leapmotion-examples/orgs","repos_url":"https://api.github.com/users/leapmotion-examples/repos","events_url":"https://api.github.com/users/leapmotion-examples/events{/privacy}","received_events_url":"https://api.github.com/users/leapmotion-examples/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapmotion-examples/UnityModules","description":"Repository containing all Leap Motion asset packages","fork":false,"url":"https://api.github.com/repos/leapmotion-examples/UnityModules","forks_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/forks","keys_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/teams","hooks_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/hooks","issue_events_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues/events{/number}","events_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/events","assignees_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/assignees{/user}","branches_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/branches{/branch}","tags_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/tags","blobs_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/statuses/{sha}","languages_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/languages","stargazers_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/stargazers","contributors_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/contributors","subscribers_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/subscribers","subscription_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/subscription","commits_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/contents/{+path}","compare_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/merges","archive_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/downloads","issues_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues{/number}","pulls_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls{/number}","milestones_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/milestones{/number}","notifications_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/labels{/name}","releases_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/releases{/id}","deployments_url":"https://api.github.com/repos/leapmotion-examples/UnityModules/deployments","created_at":"2016-02-18T23:42:29Z","updated_at":"2016-02-24T02:48:20Z","pushed_at":"2016-02-27T02:13:22Z","git_url":"git://github.com/leapmotion-examples/UnityModules.git","ssh_url":"git@github.com:leapmotion-examples/UnityModules.git","clone_url":"https://github.com/leapmotion-examples/UnityModules.git","svn_url":"https://github.com/leapmotion-examples/UnityModules","homepage":null,"size":6012,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":15,"forks":1,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/18"},"html":{"href":"https://github.com/leapmotion-examples/UnityModules/pull/18"},"issue":{"href":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues/18"},"comments":{"href":"https://api.github.com/repos/leapmotion-examples/UnityModules/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leapmotion-examples/UnityModules/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/leapmotion-examples/UnityModules/statuses/24a93964d4fc62634921d7763ba9649fb59c1ccf"}}}}