Cycles:
[blender.git] / intern / cycles / subd / subd_split.cpp
index cca64822647096cdf79312c2d4123f70c42f7d84..074c82a23481ce179cfb09c165974746fce12331 100644 (file)
@@ -74,7 +74,7 @@ int DiagSplit::T(Patch *patch, float2 Pstart, float2 Pend)
                float3 P = project(patch, Pstart + t*(Pend - Pstart));
 
                if(i > 0) {
-                       float L = length(P - Plast);
+                       float L = len(P - Plast);
                        Lsum += L;
                        Lmax = max(L, Lmax);
                }