+ 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)
+ if sampler_settings is None:
+ sampler_settings = settings
+ elif settings!=sampler_settings:
+ raise Exception("Conflicting sampler settings in material textures")
+