From 13680885b620eccdde0bc88fc2333d273d74858d Mon Sep 17 00:00:00 2001 From: hbina085 Date: Mon, 20 May 2019 15:58:46 -0400 Subject: removed a redundant NULL check in assimp editor of a pointer to an array declared in the same statement block --- modules/assimp/editor_scene_importer_assimp.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/assimp/editor_scene_importer_assimp.cpp b/modules/assimp/editor_scene_importer_assimp.cpp index 4cf8782721..8c3c04674b 100644 --- a/modules/assimp/editor_scene_importer_assimp.cpp +++ b/modules/assimp/editor_scene_importer_assimp.cpp @@ -855,9 +855,7 @@ Ref EditorSceneImporterAssimp::_generate_material_from_index(ImportSta Ref 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); } -- cgit v1.2.3