Skip to content

Instantly share code, notes, and snippets.

@vinipsmaker
Created October 4, 2013 19:04
Show Gist options
  • Save vinipsmaker/6831012 to your computer and use it in GitHub Desktop.
Save vinipsmaker/6831012 to your computer and use it in GitHub Desktop.
def mark(objects):
for obj in objects:
if !obj.isMarked():
obj.setMark(True)
mark(obj.children)
mark(root)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment