]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/material.py
Make it possible to export instance arrays from Blender
[libs/gl.git] / blender / io_mspgl / material.py
index ff145515db5febe6cdf1a518237e5a7d186d1e77..ccbf0083f143988af633523c2b4ec2b30e10d55c 100644 (file)
@@ -225,6 +225,7 @@ class Material:
                self.blend_type = 'ALPHA' if material.blend_method=='BLEND' else 'NONE'
                self.alpha_cutoff = material.alpha_threshold if material.blend_method=='CLIP' else 0.0
                self.image_based_lighting = material.image_based_lighting
+               self.instancing = material.instancing
 
                if self.render_mode=='EXTERNAL' and not self.technique:
                        raise Exception("Invalid configuration on material {}: No technique for external rendering".format(self.name))