Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorRobert Guetzkow <rjg>2019-01-26 17:08:59 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-26 17:38:50 +0300
commit115e1d441b5d005bb3c53a134d1ad2683ffb9735 (patch)
tree44b1c95ac2664bf90501109a14872f2b0224b049 /intern
parent0b28a9a4463ab2eefef01f5ab58a6bcfee21add4 (diff)
Cycles: add missing units for properties.
Differential Revision: https://developer.blender.org/D4258
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/addon/properties.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py
index 97f03800d2c..8250100f204 100644
--- a/intern/cycles/blender/addon/properties.py
+++ b/intern/cycles/blender/addon/properties.py
@@ -360,7 +360,8 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
description="Distance between volume shader samples when rendering the volume "
"(lower values give more accurate and detailed results, but also increased render time)",
default=0.1,
- min=0.0000001, max=100000.0, soft_min=0.01, soft_max=1.0, precision=4
+ min=0.0000001, max=100000.0, soft_min=0.01, soft_max=1.0, precision=4,
+ unit='LENGTH'
)
volume_max_steps: IntProperty(
@@ -376,14 +377,14 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
description="Size of a micropolygon in pixels",
min=0.1, max=1000.0, soft_min=0.5,
default=1.0,
- subtype="PIXEL"
+ subtype='PIXEL'
)
preview_dicing_rate: FloatProperty(
name="Preview Dicing Rate",
description="Size of a micropolygon in pixels during preview render",
min=0.1, max=1000.0, soft_min=0.5,
default=8.0,
- subtype="PIXEL"
+ subtype='PIXEL'
)
max_subdivisions: IntProperty(
@@ -456,6 +457,7 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
description="Pixel filter width",
min=0.01, max=10.0,
default=1.5,
+ subtype='PIXEL'
)
seed: IntProperty(
@@ -502,6 +504,7 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
"progressively increasing it to the full viewport size",
min=8, max=16384,
default=64,
+ subtype='PIXEL'
)
debug_reset_timeout: FloatProperty(
@@ -596,7 +599,8 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
name="Camera Cull Margin",
description="Margin for the camera space culling",
default=0.1,
- min=0.0, max=5.0
+ min=0.0, max=5.0,
+ subtype='FACTOR'
)
use_distance_cull: BoolProperty(
@@ -609,7 +613,8 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
name="Cull Distance",
description="Cull objects which are further away from camera than this distance",
default=50,
- min=0.0
+ min=0.0,
+ unit='LENGTH'
)
motion_blur_position: EnumProperty(
@@ -1196,12 +1201,14 @@ class CyclesCurveRenderSettings(bpy.types.PropertyGroup):
description="Minimal pixel width for strands (0 - deactivated)",
min=0.0, max=100.0,
default=0.0,
+ subtype='PIXEL'
)
maximum_width: FloatProperty(
name="Maximal width",
description="Maximum extension that strand radius can be increased by",
min=0.0, max=100.0,
default=0.1,
+ subtype='PIXEL'
)
subdivisions: IntProperty(
name="Subdivisions",