]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/material.py
Remove default sampler from Texture
[libs/gl.git] / blender / io_mspgl / material.py
index aba58e5518d4ebf9477da591ccb2a0e776cad249..1d6a06a0b0730974365d21e65a3f19760b566bea 100644 (file)
@@ -96,6 +96,7 @@ class Material:
                self.shader = material.shader
                self.receive_shadows = material.receive_shadows
                self.cast_shadows = (material.shadow_method!='NONE')
+               self.image_based_lighting = material.image_based_lighting
 
                if self.render_mode=='EXTERNAL' and not self.technique:
                        raise Exception("Invalid configuration on material {}: No technique for external rendering".format(self.name))
@@ -139,7 +140,7 @@ class Material:
                sampler_settings = None
                for p in self.properties:
                        if p.texture:
-                               settings = (p.texture.default_filter, p.texture.interpolation, p.texture.use_mipmap, p.texture.max_anisotropy)
+                               settings = (p.texture.interpolation, p.texture.use_mipmap, p.texture.max_anisotropy)
                                if sampler_settings is None:
                                        sampler_settings = settings
                                elif settings!=sampler_settings: