Material compare id in .equals
Merge pull request #556 from xoppa/3dapi

Fix issue 1659, Material: compare id in .equals