From: Mikko Rasa Date: Sat, 16 Oct 2021 12:43:38 +0000 (+0300) Subject: Remove an unnecessary if X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=27ba68e3d81098c59b7114a8f54996278c05e4ef;p=libs%2Fgl.git Remove an unnecessary if The condition is already checked at the outer level --- 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)