{"action":"created","issue":{"url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2882","repository_url":"https://api.github.com/repos/Facepunch/garrysmod-issues","labels_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2882/labels{/name}","comments_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2882/comments","events_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2882/events","html_url":"https://github.com/Facepunch/garrysmod-issues/issues/2882","id":184635368,"number":2882,"title":"Unexpected Behavior With table.Copy","user":{"login":"shadowscion","id":2807409,"avatar_url":"https://avatars.githubusercontent.com/u/2807409?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowscion","html_url":"https://github.com/shadowscion","followers_url":"https://api.github.com/users/shadowscion/followers","following_url":"https://api.github.com/users/shadowscion/following{/other_user}","gists_url":"https://api.github.com/users/shadowscion/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowscion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowscion/subscriptions","organizations_url":"https://api.github.com/users/shadowscion/orgs","repos_url":"https://api.github.com/users/shadowscion/repos","events_url":"https://api.github.com/users/shadowscion/events{/privacy}","received_events_url":"https://api.github.com/users/shadowscion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-22T15:08:24Z","updated_at":"2016-10-22T19:39:41Z","closed_at":null,"body":"### Details\r\n**table.Copy** doesn't create copies of vectors or angles within the table. I'm not sure if this is intended, but to me, it's unexpected. It would seem that vectors and angles aren't treated as tables by the **istable** check that's used in **table.Copy**.\r\n\r\n### Steps to reproduce\r\n```\r\nlocal original = {\r\n    ang = Angle(0, 0, 0),\r\n    pos = Vector(1, 1, 1),\r\n    dir = Vector(1, 0, 0),\r\n}\r\n\r\nMsgC(Color(255, 255, 255), \"\\n\\nOriginal Before\\n\")\r\nPrintTable(original)\r\n\r\n\r\n\r\nlocal copy = table.Copy(original)\r\n\r\ncopy.ang:RotateAroundAxis(copy.dir, 90)\r\ncopy.pos:Rotate(copy.ang)\r\n\r\n\r\n\r\n\r\nMsgC(Color(255, 255, 255), \"Original After\\n\")\r\nPrintTable(original)\r\n\r\nMsgC(Color(255, 255, 255), \"Copy\\n\")\r\nPrintTable(copy)\r\n\r\n\r\n\r\nOutput...\r\n\r\nOriginal Before\r\nang =   0.000 0.000 0.000\r\ndir =   1.000000 0.000000 0.000000\r\npos =   1.000000 1.000000 1.000000\r\nOriginal After\r\nang =   -0.000 0.000 90.000\r\ndir =   1.000000 0.000000 0.000000\r\npos =   1.000000 -1.000000 1.000000\r\nCopy\r\nang =   -0.000 0.000 90.000\r\ndir =   1.000000 0.000000 0.000000\r\npos =   1.000000 -1.000000 1.000000\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/comments/255549344","html_url":"https://github.com/Facepunch/garrysmod-issues/issues/2882#issuecomment-255549344","issue_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2882","id":255549344,"user":{"login":"shadowscion","id":2807409,"avatar_url":"https://avatars.githubusercontent.com/u/2807409?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowscion","html_url":"https://github.com/shadowscion","followers_url":"https://api.github.com/users/shadowscion/followers","following_url":"https://api.github.com/users/shadowscion/following{/other_user}","gists_url":"https://api.github.com/users/shadowscion/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowscion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowscion/subscriptions","organizations_url":"https://api.github.com/users/shadowscion/orgs","repos_url":"https://api.github.com/users/shadowscion/repos","events_url":"https://api.github.com/users/shadowscion/events{/privacy}","received_events_url":"https://api.github.com/users/shadowscion/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T19:39:41Z","updated_at":"2016-10-22T19:39:41Z","body":"@robotboy655 Thanks."}}
{"actor":{"display_login":"shadowscion"}}