{"action":"created","issue":{"url":"https://api.github.com/repos/GarageGames/Torque3D/issues/1246","labels_url":"https://api.github.com/repos/GarageGames/Torque3D/issues/1246/labels{/name}","comments_url":"https://api.github.com/repos/GarageGames/Torque3D/issues/1246/comments","events_url":"https://api.github.com/repos/GarageGames/Torque3D/issues/1246/events","html_url":"https://github.com/GarageGames/Torque3D/pull/1246","id":60281118,"number":1246,"title":"Fix GuiTreeViewCtrl::getParentItem incorrent use in ShapeEditor script files.","user":{"login":"LuisAntonRebollo","id":2388307,"avatar_url":"https://avatars.githubusercontent.com/u/2388307?v=3","gravatar_id":"","url":"https://api.github.com/users/LuisAntonRebollo","html_url":"https://github.com/LuisAntonRebollo","followers_url":"https://api.github.com/users/LuisAntonRebollo/followers","following_url":"https://api.github.com/users/LuisAntonRebollo/following{/other_user}","gists_url":"https://api.github.com/users/LuisAntonRebollo/gists{/gist_id}","starred_url":"https://api.github.com/users/LuisAntonRebollo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuisAntonRebollo/subscriptions","organizations_url":"https://api.github.com/users/LuisAntonRebollo/orgs","repos_url":"https://api.github.com/users/LuisAntonRebollo/repos","events_url":"https://api.github.com/users/LuisAntonRebollo/events{/privacy}","received_events_url":"https://api.github.com/users/LuisAntonRebollo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GarageGames/Torque3D/labels/Bug%20/%20fix","name":"Bug / fix","color":"fc2929"},{"url":"https://api.github.com/repos/GarageGames/Torque3D/labels/Final%20review","name":"Final review","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/GarageGames/Torque3D/milestones/4","html_url":"https://github.com/GarageGames/Torque3D/milestones/3.7","labels_url":"https://api.github.com/repos/GarageGames/Torque3D/milestones/4/labels","id":612993,"number":4,"title":"3.7","description":"This version will focus on processing two of the major outstanding pull requests, James Urquhart's [TorqueScript interpreter improvements](https://github.com/GarageGames/Torque3D/pull/81) and Tim Condon's [GUI additions](https://github.com/GarageGames/Torque3D/pull/545). Along with that we'll be bringing in lots of other TS-related enhancements, adding unit tests for TS to make sure we don't break your games, and processing even more of the outstanding issue list.","creator":{"login":"eightyeight","id":904269,"avatar_url":"https://avatars.githubusercontent.com/u/904269?v=3","gravatar_id":"","url":"https://api.github.com/users/eightyeight","html_url":"https://github.com/eightyeight","followers_url":"https://api.github.com/users/eightyeight/followers","following_url":"https://api.github.com/users/eightyeight/following{/other_user}","gists_url":"https://api.github.com/users/eightyeight/gists{/gist_id}","starred_url":"https://api.github.com/users/eightyeight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eightyeight/subscriptions","organizations_url":"https://api.github.com/users/eightyeight/orgs","repos_url":"https://api.github.com/users/eightyeight/repos","events_url":"https://api.github.com/users/eightyeight/events{/privacy}","received_events_url":"https://api.github.com/users/eightyeight/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":192,"state":"open","created_at":"2014-03-28T09:25:39Z","updated_at":"2015-03-08T23:03:19Z","due_on":"2015-01-31T08:00:00Z","closed_at":null},"comments":2,"created_at":"2015-03-08T22:52:14Z","updated_at":"2015-03-08T23:25:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GarageGames/Torque3D/pulls/1246","html_url":"https://github.com/GarageGames/Torque3D/pull/1246","diff_url":"https://github.com/GarageGames/Torque3D/pull/1246.diff","patch_url":"https://github.com/GarageGames/Torque3D/pull/1246.patch"},"body":"Related to  Object editor lod alteration fails #1135 \r\n\r\nIf you check script files, use ```%this.getParent( %id );``` but are a invalid method:\r\n```\r\nDefineEngineMethod( GuiControl, getParent, GuiControl*, (),,\r\n   \"Get the immediate parent control of the control.\\n\"\r\n   \"@return The immediate parent GuiControl or 0 if the control is not parented to a GuiControl.\\n\" )\r\n{\r\n   return object->getParent();\r\n}\r\n```\r\n\r\nLooks like the correct method is:\r\n```\r\n//FIXME: [rene 11/09/09 - This clashes with GuiControl.getParent(); bad thing; should be getParentItem]\r\nDefineEngineMethod( GuiTreeViewCtrl, getParentItem, S32, (S32 itemId), ,\r\n   \"Get the parent of a given id in the tree.\\n\\n\"\r\n   \"@param itemId TreeItemID of item that has a parent we should get.\\n\"\r\n   \"@return Id of parent of given item.\")\r\n{      \r\n   return(object->getParentItem(itemId));\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/GarageGames/Torque3D/issues/comments/77781712","html_url":"https://github.com/GarageGames/Torque3D/pull/1246#issuecomment-77781712","issue_url":"https://api.github.com/repos/GarageGames/Torque3D/issues/1246","id":77781712,"user":{"login":"Azaezel","id":4236451,"avatar_url":"https://avatars.githubusercontent.com/u/4236451?v=3","gravatar_id":"","url":"https://api.github.com/users/Azaezel","html_url":"https://github.com/Azaezel","followers_url":"https://api.github.com/users/Azaezel/followers","following_url":"https://api.github.com/users/Azaezel/following{/other_user}","gists_url":"https://api.github.com/users/Azaezel/gists{/gist_id}","starred_url":"https://api.github.com/users/Azaezel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azaezel/subscriptions","organizations_url":"https://api.github.com/users/Azaezel/orgs","repos_url":"https://api.github.com/users/Azaezel/repos","events_url":"https://api.github.com/users/Azaezel/events{/privacy}","received_events_url":"https://api.github.com/users/Azaezel/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T23:25:17Z","updated_at":"2015-03-08T23:25:17Z","body":"verified. both lod and crash errors fixed."}}