Cleanup: Not needed if statement around delete.

This commit is contained in:
Jeroen Bakker 2022-01-12 12:34:56 +01:00
parent d43b5791e0
commit 1552b86b55
1 changed files with 1 additions and 3 deletions

View File

@ -353,9 +353,7 @@ MTLMaterial mtlmaterial_for_material(const Material *material)
const nodes::NodeRef *bsdf_node = find_bsdf_node(nodetree);
store_bsdf_properties(bsdf_node, material, mtlmat);
store_image_textures(bsdf_node, nodetree, material, mtlmat);
if (nodetree) {
delete nodetree;
}
delete nodetree;
return mtlmat;
}