Fixed problem with paint clipping

Paint auto-clipping was handled incorrectly; children were not clipped