Have the IToolPart implementations actually respect the IToolPart API. (-1 on invalid material)
Merge pull request #844 from bonii-xx/pr2

Have the IToolPart implementations actually respect the IToolPart API.