Skip to content

Commit

Permalink
fix: show filter for all samplers
Browse files Browse the repository at this point in the history
  • Loading branch information
bdancer committed Jan 18, 2017
1 parent 95cc8ad commit cc5f717
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ui/properties_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,15 +670,14 @@ def draw(self, context):

classes.DrawPluginUIAuto(context, self.layout, SettingsImageSampler, 'SettingsImageSampler')

if SettingsImageSampler.type not in {'3'}:
self.layout.separator()
self.layout.prop(SettingsImageSampler, "filter_type")
self.layout.separator()
self.layout.prop(SettingsImageSampler, "filter_type")

if SettingsImageSampler.filter_type not in {'NONE'}:
filterPluginName = SettingsImageSampler.filter_type
filterPropGroup = getattr(VRayScene, filterPluginName)
if SettingsImageSampler.filter_type not in {'NONE'}:
filterPluginName = SettingsImageSampler.filter_type
filterPropGroup = getattr(VRayScene, filterPluginName)

classes.DrawPluginUIAuto(context, self.layout, filterPropGroup, filterPluginName)
classes.DrawPluginUIAuto(context, self.layout, filterPropGroup, filterPluginName)


######## ## ## ######
Expand Down

0 comments on commit cc5f717

Please sign in to comment.