Cycles: Soft minimum for dice rates

Use 0.5 as a soft minimum for dice rates to help from setting them too
low. Lower values can still be set by typing in the value.
This commit is contained in:
Mai Lavelle
2016-09-17 20:45:00 -04:00
parent 8f28441487
commit 799454821e

View File

@@ -367,14 +367,14 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
cls.dicing_rate = FloatProperty( cls.dicing_rate = FloatProperty(
name="Dicing Rate", name="Dicing Rate",
description="Size of a micropolygon in pixels", description="Size of a micropolygon in pixels",
min=0.1, max=1000.0, min=0.1, max=1000.0, soft_min=0.5,
default=1.0, default=1.0,
subtype="PIXEL" subtype="PIXEL"
) )
cls.preview_dicing_rate = FloatProperty( cls.preview_dicing_rate = FloatProperty(
name="Preview Dicing Rate", name="Preview Dicing Rate",
description="Size of a micropolygon in pixels during preview render", description="Size of a micropolygon in pixels during preview render",
min=0.1, max=1000.0, min=0.1, max=1000.0, soft_min=0.5,
default=8.0, default=8.0,
subtype="PIXEL" subtype="PIXEL"
) )
@@ -1011,7 +1011,7 @@ class CyclesObjectSettings(bpy.types.PropertyGroup):
cls.dicing_rate = FloatProperty( cls.dicing_rate = FloatProperty(
name="Dicing Scale", name="Dicing Scale",
description="Multiplier for scene dicing rate (located in the Geometry Panel)", description="Multiplier for scene dicing rate (located in the Geometry Panel)",
min=0.1, max=1000.0, min=0.1, max=1000.0, soft_min=0.5,
default=1.0, default=1.0,
) )