fixed error "normalize" > "normalized"
authorBrendon Murphy <meta.androcto1@gmail.com>
Thu, 14 Apr 2011 09:25:52 +0000 (09:25 +0000)
committerBrendon Murphy <meta.androcto1@gmail.com>
Thu, 14 Apr 2011 09:25:52 +0000 (09:25 +0000)
thanks macouno

mesh_normal_smooth.py

index 37780d410de64a2021f6e7cd0c47e8838175a9f7..248fe7d49994b2d1c18629dde77662937b420234 100644 (file)
@@ -29,7 +29,7 @@ bl_info = {
     "api": 36147,
     "location": "View3D > Specials > Normal Smooth ",
     "description": "Smooth the vertex position based on the normals",
-    "warning": "Broken",
+    "warning": "",
     "wiki_url": "",
     "tracker_url": "",
     "category": "Mesh"}
@@ -95,10 +95,10 @@ def smoothVert(v1, v1in, me):
                         vLen *= 0.514
                         
                         # Get the normal rotated 90 degrees (pi * 0.5 = 90 degrees in radians) towards the original vert
-                        vNor = RotVtoV(v2.normal, vTov.normalize(), (math.pi * 0.5))
+                        vNor = RotVtoV(v2.normal, vTov.normalized(), (math.pi * 0.5))
                         
                         # Make the vector the correct length
-                        vNor = vNor.normalize() * vLen
+                        vNor = vNor.normalized() * vLen
                         
                         # Add the vector to the vert position to get the correct coord
                         vNor = v2co + vNor