{"action":"closed","issue":{"url":"https://api.github.com/repos/JacquesLucke/animation_nodes/issues/240","labels_url":"https://api.github.com/repos/JacquesLucke/animation_nodes/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/JacquesLucke/animation_nodes/issues/240/comments","events_url":"https://api.github.com/repos/JacquesLucke/animation_nodes/issues/240/events","html_url":"https://github.com/JacquesLucke/animation_nodes/issues/240","id":110169167,"number":240,"title":"Call Validate object after setting mesh/bmesh on object","user":{"login":"kmeirlaen","id":4618798,"avatar_url":"https://avatars.githubusercontent.com/u/4618798?v=3","gravatar_id":"","url":"https://api.github.com/users/kmeirlaen","html_url":"https://github.com/kmeirlaen","followers_url":"https://api.github.com/users/kmeirlaen/followers","following_url":"https://api.github.com/users/kmeirlaen/following{/other_user}","gists_url":"https://api.github.com/users/kmeirlaen/gists{/gist_id}","starred_url":"https://api.github.com/users/kmeirlaen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmeirlaen/subscriptions","organizations_url":"https://api.github.com/users/kmeirlaen/orgs","repos_url":"https://api.github.com/users/kmeirlaen/repos","events_url":"https://api.github.com/users/kmeirlaen/events{/privacy}","received_events_url":"https://api.github.com/users/kmeirlaen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-07T07:48:07Z","updated_at":"2015-10-07T10:49:24Z","closed_at":"2015-10-07T10:49:24Z","body":"So... Blender was crashing on me when I was trying to edit a generated plane.\r\nI filled a bug report (https://developer.blender.org/T46400) and Campbell suggested to run the validation on the object.\r\nSo I did it in the sample file and indeed, the object had some invalid references:\r\n\r\nBKE_mesh_validate_arrays: verts(4), edges(4), loops(4), polygons(1)\r\n        Vertex 0: has zero normal, assuming Z-up normal\r\n        Vertex 1: has zero normal, assuming Z-up normal\r\n        Vertex 2: has zero normal, assuming Z-up normal\r\n        Vertex 3: has zero normal, assuming Z-up normal\r\n        Poly 0 has invalid edge reference (0), fixed using edge 1\r\n        Poly 0 has invalid edge reference (0), fixed using edge 2\r\n        Poly 0 has invalid edge reference (0), fixed using edge 3\r\nBKE_mesh_validate_arrays: finished\r\n\r\n\r\nSo I had a look at my node structure. It seems the issue was that I was using\r\nCombine Mesh Data => Set Mesh data on object.\r\n\r\nChaning it to\r\nCombine Mesh data => Create BMesh => Set BMesh on Object\r\n\r\nsolved the problem :\r\n\r\nBKE_mesh_validate_arrays: verts(4), edges(4), loops(4), polygons(1)\r\n        Vertex 0: has zero normal, assuming Z-up normal\r\n        Vertex 1: has zero normal, assuming Z-up normal\r\n        Vertex 2: has zero normal, assuming Z-up normal\r\n        Vertex 3: has zero normal, assuming Z-up normal\r\nBKE_mesh_validate_arrays: finished\r\n\r\n\r\nSo I guess my susggestion is to have the \"set mesh/bmesh on object\" nodes perform a validation if the generated object is indeed valid and if not provide feedback on what is invalid.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4618798/10331779/5710e978-6cd8-11e5-8b5c-5490bfb4de31.png)\r\n\r\n(had to attach screenshot as .blend files are not accepted here)"}}