custom material properties no longer try and draw when there is no material present
Merge pull request #22 from repsac/21

fix for issue #21