Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created September 21, 2009 14:24
Show Gist options
  • Save abuiles/190262 to your computer and use it in GitHub Desktop.
Save abuiles/190262 to your computer and use it in GitHub Desktop.
def checkTree (tree:List[SceneObject]) = ((tree count (_.isInstanceOf[Camera])) == 1 ) && ((tree count (_.isInstanceOf[LightSource])) == 1 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment