removed inverted and normalized from py scripts
authorCampbell Barton <ideasman42@gmail.com>
Thu, 7 Sep 2006 14:15:10 +0000 (14:15 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 7 Sep 2006 14:15:10 +0000 (14:15 +0000)
release/scripts/bevel_center.py
release/scripts/bpymodules/BPyMesh.py
release/scripts/object_cookie_cutter.py

index 6489c302b670f7bc4a5ac772c491b68cb4448e96..baa228de1b846ecbf9e699f1790b8103fbabeb56 100644 (file)
@@ -85,9 +85,9 @@ def add_to_NV(old,dir,new):
 
 def get_v(old, *neighbors):
        # compute the direction of the new vert
-       if len(neighbors) == 1: dir = (neighbors[0].co - old.co).normalized()
+       if len(neighbors) == 1: dir = (neighbors[0].co - old.co).normalize()
                #dir
-       else: dir = (neighbors[0].co - old.co).normalized() + (neighbors[1].co-old.co).normalized()
+       else: dir = (neighbors[0].co - old.co).normalize() + (neighbors[1].co-old.co).normalize()
         
        # look in NV if this vert already exists
        key = tuple(dir)
index 1c9380549905c7eed41ec822b668504a4b7c25c0..53268cd1bbf4268a2d0548c05557afd9f919b56f 100644 (file)
@@ -1045,7 +1045,7 @@ def pointInsideMesh(ob, pt):
                else:
                        return False
        
-       obSpacePt = pt*ob.matrixWorld.inverted()
+       obSpacePt = pt*ob.matrixWorld.copy().invert()
        ray = Vector(0,0,-1)
        me= ob.getData(mesh=1)
        
index ce03500f4dee05aa91820d1e1cc16d7ffec09da7..e67a95a742ff8f95b5947f1b51b5498e0c00fb37 100755 (executable)
@@ -649,11 +649,11 @@ def main():
        # Restore the transformation
        for data in (terrains, cutters):
                for t in data:
-                       t.mesh.transform(t.matrix.inverted())
+                       t.mesh.transform(t.matrix.copy().invert())
        
        Blender.Window.WaitCursor(0)
        print 'terrains:%i cutters %i  %.2f secs taken' % (len(terrains), len(cutters), Blender.sys.time()-time)
 
 
 if __name__=='__main__':
-       main()
\ No newline at end of file
+       main()