]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_material.py
Remove an unnecessary if
[libs/gl.git] / 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)