{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCAD/FreeCAD/issues/86","repository_url":"https://api.github.com/repos/FreeCAD/FreeCAD","labels_url":"https://api.github.com/repos/FreeCAD/FreeCAD/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/FreeCAD/FreeCAD/issues/86/comments","events_url":"https://api.github.com/repos/FreeCAD/FreeCAD/issues/86/events","html_url":"https://github.com/FreeCAD/FreeCAD/pull/86","id":130783634,"number":86,"title":"Wire undo, Extrude script, Test","user":{"login":"iHateInventNames","id":190779,"avatar_url":"https://avatars.githubusercontent.com/u/190779?v=3","gravatar_id":"","url":"https://api.github.com/users/iHateInventNames","html_url":"https://github.com/iHateInventNames","followers_url":"https://api.github.com/users/iHateInventNames/followers","following_url":"https://api.github.com/users/iHateInventNames/following{/other_user}","gists_url":"https://api.github.com/users/iHateInventNames/gists{/gist_id}","starred_url":"https://api.github.com/users/iHateInventNames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iHateInventNames/subscriptions","organizations_url":"https://api.github.com/users/iHateInventNames/orgs","repos_url":"https://api.github.com/users/iHateInventNames/repos","events_url":"https://api.github.com/users/iHateInventNames/events{/privacy}","received_events_url":"https://api.github.com/users/iHateInventNames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-02T19:06:39Z","updated_at":"2016-03-07T20:53:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FreeCAD/FreeCAD/pulls/86","html_url":"https://github.com/FreeCAD/FreeCAD/pull/86","diff_url":"https://github.com/FreeCAD/FreeCAD/pull/86.diff","patch_url":"https://github.com/FreeCAD/FreeCAD/pull/86.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/FreeCAD/FreeCAD/issues/comments/193444433","html_url":"https://github.com/FreeCAD/FreeCAD/pull/86#issuecomment-193444433","issue_url":"https://api.github.com/repos/FreeCAD/FreeCAD/issues/86","id":193444433,"user":{"login":"iHateInventNames","id":190779,"avatar_url":"https://avatars.githubusercontent.com/u/190779?v=3","gravatar_id":"","url":"https://api.github.com/users/iHateInventNames","html_url":"https://github.com/iHateInventNames","followers_url":"https://api.github.com/users/iHateInventNames/followers","following_url":"https://api.github.com/users/iHateInventNames/following{/other_user}","gists_url":"https://api.github.com/users/iHateInventNames/gists{/gist_id}","starred_url":"https://api.github.com/users/iHateInventNames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iHateInventNames/subscriptions","organizations_url":"https://api.github.com/users/iHateInventNames/orgs","repos_url":"https://api.github.com/users/iHateInventNames/repos","events_url":"https://api.github.com/users/iHateInventNames/events{/privacy}","received_events_url":"https://api.github.com/users/iHateInventNames/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T20:53:01Z","updated_at":"2016-03-07T20:53:01Z","body":"Hi @wwmayer,\r\n\r\nAs for now I was unable to find any with requests 'wire undo' or 'polyline undo' there http://www.freecadweb.org/tracker \r\nThe purpose of the new getObject method (getDocumentObject after rename) is to work well for Gui::ViewProviderDocumentObject and its derivatives slightly in same way as for DocumentObject derivatives. \r\n![screenshot_2016-03-07_22-44-52](https://cloud.githubusercontent.com/assets/190779/13582653/3db80c08-e4b6-11e5-845e-212f175a825a.png)\r\nPropertyContainer is common ancestor class for DocumentObject and ViewProviderDocumentObject classes.\r\nWhen the PropertyContainer pointer pointing to a ViewProvider child class object is tried to be casted to DocumentObject pointer through freecad_cast or dynamic_cast it casted to null. \r\nThis causes special type tests for ViewProviderDocumentObject hierarchy to make custom casting calls. These are unnecessary. The patch allows to reduce some copypaste and resolves some related crashes."}}