From 27ba68e3d81098c59b7114a8f54996278c05e4ef Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 16 Oct 2021 15:43:38 +0300 Subject: [PATCH] Remove an unnecessary if The condition is already checked at the outer level --- blender/io_mspgl/export_material.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/blender/io_mspgl/export_material.py b/blender/io_mspgl/export_material.py index 62319b8a..617a683f 100644 --- a/blender/io_mspgl/export_material.py +++ b/blender/io_mspgl/export_material.py @@ -32,12 +32,10 @@ def create_technique_resource(material, resources): if material.blended: ss.sub.append(Statement("blend", Token("SRC_ALPHA"), Token("ONE_MINUS_SRC_ALPHA"))) - - if material.render_mode!='CUSTOM': - if material.receive_shadows: - st.sub.append(Statement("receive_shadows", True)) - if material.image_based_lighting: - st.sub.append(Statement("image_based_lighting", True)) + if material.receive_shadows: + st.sub.append(Statement("receive_shadows", True)) + if material.image_based_lighting: + st.sub.append(Statement("image_based_lighting", True)) tech_res.statements.append(st) -- 2.43.0