{"action":"opened","issue":{"url":"https://api.github.com/repos/okamstudio/godot/issues/1177","labels_url":"https://api.github.com/repos/okamstudio/godot/issues/1177/labels{/name}","comments_url":"https://api.github.com/repos/okamstudio/godot/issues/1177/comments","events_url":"https://api.github.com/repos/okamstudio/godot/issues/1177/events","html_url":"https://github.com/okamstudio/godot/issues/1177","id":53979004,"number":1177,"title":"[2D Editor] Snapping to bounding box interferes with snapped placement of sprites and polygons","user":{"login":"not-surt","id":1218087,"avatar_url":"https://avatars.githubusercontent.com/u/1218087?v=3","gravatar_id":"","url":"https://api.github.com/users/not-surt","html_url":"https://github.com/not-surt","followers_url":"https://api.github.com/users/not-surt/followers","following_url":"https://api.github.com/users/not-surt/following{/other_user}","gists_url":"https://api.github.com/users/not-surt/gists{/gist_id}","starred_url":"https://api.github.com/users/not-surt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/not-surt/subscriptions","organizations_url":"https://api.github.com/users/not-surt/orgs","repos_url":"https://api.github.com/users/not-surt/repos","events_url":"https://api.github.com/users/not-surt/events{/privacy}","received_events_url":"https://api.github.com/users/not-surt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-11T02:16:25Z","updated_at":"2015-01-11T02:16:25Z","closed_at":null,"body":"Polygons always snap to the top-left corner of their padded AABB.\r\nIf you draw a polygon so that all its vertices are snapped to the grid then move it it is impossible to place it so that the vertices are snapped to the grid, unless the snap size perfectly matches the padding size.\r\n\r\nSprites always snap to the top-left corner of their AABB.\r\nIf a sprite size isn't a multiple of the snap size it is impossible to place it neatly on the grid.\r\n\r\nI propose to snap the object origins rather than the AABB corner.\r\nThis way the snapping point of sprites may be adjusted by the offset.\r\nThis way polygons may be snapped and their snapped vertices remain on the grid."}}