{"action":"opened","issue":{"url":"https://api.github.com/repos/openscad/openscad/issues/1529","labels_url":"https://api.github.com/repos/openscad/openscad/issues/1529/labels{/name}","comments_url":"https://api.github.com/repos/openscad/openscad/issues/1529/comments","events_url":"https://api.github.com/repos/openscad/openscad/issues/1529/events","html_url":"https://github.com/openscad/openscad/issues/1529","id":123619116,"number":1529,"title":"modifiers not working properly with children()","user":{"login":"kintel","id":186094,"avatar_url":"https://avatars.githubusercontent.com/u/186094?v=3","gravatar_id":"","url":"https://api.github.com/users/kintel","html_url":"https://github.com/kintel","followers_url":"https://api.github.com/users/kintel/followers","following_url":"https://api.github.com/users/kintel/following{/other_user}","gists_url":"https://api.github.com/users/kintel/gists{/gist_id}","starred_url":"https://api.github.com/users/kintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kintel/subscriptions","organizations_url":"https://api.github.com/users/kintel/orgs","repos_url":"https://api.github.com/users/kintel/repos","events_url":"https://api.github.com/users/kintel/events{/privacy}","received_events_url":"https://api.github.com/users/kintel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-23T08:17:10Z","updated_at":"2015-12-23T08:17:10Z","closed_at":null,"body":"The following code demonstrates the problem: The ```children(0)``` invocation drops the background flag. The reason for this appears to be that flags are kept in the ```ModuleInstantiation```, but in this case, the resulting node should be a combination of the ```children(0)``` instantiation and the actual child instantiation.\r\n\r\n```\r\nmodule all_transparent() {\r\n %children();\r\n}\r\n\r\nmodule first_transparent() {\r\n %children(0);\r\n}\r\n\r\ndifference() {\r\n  sphere(r=10);\r\n  all_transparent() cylinder(h=30, r=6, center=true);\r\n  first_transparent() rotate([90,0,0]) cylinder(h=30, r=6, center=true);\r\n}\r\n```"}}