Cycles Hair: Strand Minimum Pixel Size
[blender.git] / intern / cycles / render / curves.cpp
index 3ee441ef095c2a8cc1b692e26c0053917a22c4e5..3fcd78b01526a473bc7ffe5a210cf2d99b7e3f12 100644 (file)
@@ -89,10 +89,11 @@ CurveSystemManager::CurveSystemManager()
 
        normalmix = 1.0f;
        encasing_ratio = 1.01f;
+       minimum_width = 0.0f;
+       maximum_width = 0.0f;
 
        use_curves = true;
        use_smooth = true;
-       use_cache = true;
        use_parents = false;
        use_encasing = true;
        use_backfacing = false;
@@ -150,6 +151,8 @@ void CurveSystemManager::device_update(Device *device, DeviceScene *dscene, Scen
 
                kcurve->normalmix = normalmix;
                kcurve->encasing_ratio = encasing_ratio;
+               kcurve->minimum_width = minimum_width;
+               kcurve->maximum_width = maximum_width;
                kcurve->subdivisions = subdivisions;
        }
 
@@ -173,9 +176,10 @@ bool CurveSystemManager::modified(const CurveSystemManager& CurveSystemManager)
                use_tangent_normal_correction == CurveSystemManager.use_tangent_normal_correction &&
                use_tangent_normal_geometry == CurveSystemManager.use_tangent_normal_geometry &&
                encasing_ratio == CurveSystemManager.encasing_ratio &&
+               minimum_width == CurveSystemManager.minimum_width &&
+               maximum_width == CurveSystemManager.maximum_width &&
                use_backfacing == CurveSystemManager.use_backfacing &&
                normalmix == CurveSystemManager.normalmix &&
-               use_cache == CurveSystemManager.use_cache &&
                use_smooth == CurveSystemManager.use_smooth &&
                triangle_method == CurveSystemManager.triangle_method &&
                resolution == CurveSystemManager.resolution &&
@@ -196,8 +200,7 @@ bool CurveSystemManager::modified_mesh(const CurveSystemManager& CurveSystemMana
                resolution == CurveSystemManager.resolution &&
                use_curves == CurveSystemManager.use_curves &&
                use_joined == CurveSystemManager.use_joined &&
-               segments == CurveSystemManager.segments &&
-               use_cache == CurveSystemManager.use_cache);
+               segments == CurveSystemManager.segments);
 }
 
 void CurveSystemManager::tag_update(Scene *scene)