Merge pull request #29050 from hbina/redundant_null_checks

removed a redundant null check in assimp editor
This commit is contained in:
Rémi Verschelde 2019-05-21 12:07:38 +02:00 committed by GitHub
commit 2bee15eee1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -855,9 +855,7 @@ Ref<Material> EditorSceneImporterAssimp::_generate_material_from_index(ImportSta
Ref<Texture> texture = _load_texture(state, path);
if (texture != NULL) {
if (map_mode != NULL) {
_set_texture_mapping_mode(map_mode, texture);
}
_set_texture_mapping_mode(map_mode, texture);
mat->set_feature(SpatialMaterial::Feature::FEATURE_NORMAL_MAPPING, true);
mat->set_texture(SpatialMaterial::TEXTURE_NORMAL, texture);
}