[Bf-extensions-cvs] [fa2a5d5] master: Update for changes in BMesh

Campbell Barton noreply at git.blender.org
Mon Mar 9 12:13:44 CET 2015


Commit: fa2a5d5577d03f9986fa0620164b1f6886f9994e
Author: Campbell Barton
Date:   Mon Mar 9 22:13:15 2015 +1100
Branches: master
https://developer.blender.org/rBACfa2a5d5577d03f9986fa0620164b1f6886f9994e

Update for changes in BMesh

===================================================================

M	curve_tools/Surfaces.py

===================================================================

diff --git a/curve_tools/Surfaces.py b/curve_tools/Surfaces.py
index 8ce556b..7e31a6e 100644
--- a/curve_tools/Surfaces.py
+++ b/curve_tools/Surfaces.py
@@ -40,6 +40,8 @@ class LoftedSplineSurface:
         currIndexO = self.vert0Index + 1
         
         bmVerts = self.bMesh.verts
+        bmVerts.ensure_lookup_table()
+
         for i in range(1, self.resolution):
             nextIndexA = self.vert0Index + 2 * i
             nextIndexO = nextIndexA + 1
@@ -185,6 +187,7 @@ class SweptSplineSurface:
         
     def AddFaces(self):
         bmVerts = self.bMesh.verts
+        bmVerts.ensure_lookup_table()
         
         for iO in range(self.resolutionO - 1):
             for iA in range(self.resolutionA - 1):
@@ -349,6 +352,7 @@ class BirailedSplineSurface:
         
     def AddFaces(self):
         bmVerts = self.bMesh.verts
+        bmVerts.ensure_lookup_table()
         
         for iRail in range(self.resolutionRails - 1):
             for iProfile in range(self.resolutionProfile - 1):
@@ -454,4 +458,4 @@ class BirailedSurface:
         
         bpy.context.scene.objects.link(meshObject)
 
-    
\ No newline at end of file
+



More information about the Bf-extensions-cvs mailing list