{"action":"opened","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/2927","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/2927/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/2927/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/2927/events","html_url":"https://github.com/libgdx/libgdx/issues/2927","id":60484951,"number":2927,"title":"Node.insertChild never terminates in some conditions","user":{"login":"ssebastian","id":2109450,"avatar_url":"https://avatars.githubusercontent.com/u/2109450?v=3","gravatar_id":"","url":"https://api.github.com/users/ssebastian","html_url":"https://github.com/ssebastian","followers_url":"https://api.github.com/users/ssebastian/followers","following_url":"https://api.github.com/users/ssebastian/following{/other_user}","gists_url":"https://api.github.com/users/ssebastian/gists{/gist_id}","starred_url":"https://api.github.com/users/ssebastian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssebastian/subscriptions","organizations_url":"https://api.github.com/users/ssebastian/orgs","repos_url":"https://api.github.com/users/ssebastian/repos","events_url":"https://api.github.com/users/ssebastian/events{/privacy}","received_events_url":"https://api.github.com/users/ssebastian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T11:24:35Z","updated_at":"2015-03-10T11:24:35Z","closed_at":null,"body":"The following for loop does not terminate if child.getParent is neither == child nor null.\r\n\r\n```\r\n\t\tfor (Node p = this; p != null; p = child.getParent()) {\r\n\t\t\tif (p == child) throw new GdxRuntimeException(\"Cannot add a parent as a child\");\r\n\t\t}\r\n```\r\n\r\nhttps://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/graphics/g3d/model/Node.java#L202"}}