mrdoob/three.js — Issue #1373: Do something when mesh's material isn't set?
Author: chandlerprall
Created: 2012-02-21 21:56:38+00:00
State: open

```javascript
var mesh = new THREE.Mesh( new THREE.CubeGeometry );
scene.add( mesh );
```

Currently this throws an error as the renderer tries to access `mesh.material` properties. I think either a descriptive error be thrown or default to a wireframe would be a better approach.

Thoughts, anyone?