]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove an unnecessary if
authorMikko Rasa <tdb@tdb.fi>
Sat, 16 Oct 2021 12:43:38 +0000 (15:43 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 16 Oct 2021 16:03:00 +0000 (19:03 +0300)
The condition is already checked at the outer level

blender/io_mspgl/export_material.py

index 62319b8a93efcf878bdd751e52a38894f564e19a..617a683f9628ffcbde9e69d5adbd9333efd5452b 100644 (file)
@@ -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)