- Material m = materialMap.get(columnData);
- if ( m == null ) {
- m = new Material.Bulk(columnData, 0.0, true);
- }
- props.put(param, m);
+ Material.Bulk tmpMaterial = (Material.Bulk) Material.newUserMaterial( Material.Type.BULK,columnData, 0.0);
+ Material.Bulk m = materialMap.getBulkMaterial(tmpMaterial);
+ props.put(param, m!= null ? m : tmpMaterial);