Don't use the default material database when loading componentpreset files.

This commit is contained in:
Kevin Ruland 2012-05-04 20:07:20 +00:00
parent 3792528e01
commit 9661b47562

View File

@ -183,11 +183,7 @@ public abstract class BaseComponentDTO {
return materialDTO.asMaterial(); return materialDTO.asMaterial();
} }
} }
// Check for the material in the default database.
Material defaultMaterial = Databases.findMaterial(Material.Type.valueOf(material.type), material.material);
if ( defaultMaterial != null ) {
return defaultMaterial;
}
// Don't have one, build one. // Don't have one, build one.
if ( "BULK".equals( dto.type ) ) { if ( "BULK".equals( dto.type ) ) {