fix for error caused with module relocation - broke loading ngons in OBJ files
authorCampbell Barton <ideasman42@gmail.com>
Sat, 18 Jun 2011 11:40:44 +0000 (11:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 18 Jun 2011 11:40:44 +0000 (11:40 +0000)
release/scripts/modules/bpy_extras/mesh_utils.py
release/scripts/modules/bpy_types.py

index b6d8a1fcf16a0a3550353d08231ccb0fed815d1c..e026910fb438142601fd5acc8a2c4c6be75c4dc6 100644 (file)
@@ -267,6 +267,7 @@ def ngon_tesselate(from_data, indices, fix_loops=True):
     fix_loops: If this is enabled polylines that use loops to make multiple polylines are delt with correctly.
     '''
 
+    from mathutils.geometry import tesselate_polygon
     from mathutils import Vector
     vector_to_tuple = Vector.to_tuple
 
index 3c1b454e72ee0cd7a68a8b0341d23bd7221c100f..eaa7563c75786a8e8c9d701a57fb914bd3cd0de9 100644 (file)
@@ -20,7 +20,6 @@
 
 from _bpy import types as bpy_types
 import _bpy
-from mathutils import Vector
 
 StructRNA = bpy_types.Struct.__bases__[0]
 StructMetaPropGroup = _bpy.StructMetaPropGroup
@@ -144,18 +143,21 @@ class _GenericBone:
     def x_axis(self):
         """ Vector pointing down the x-axis of the bone.
         """
+        from mathutils import Vector
         return Vector((1.0, 0.0, 0.0)) * self.matrix.to_3x3()
 
     @property
     def y_axis(self):
         """ Vector pointing down the x-axis of the bone.
         """
+        from mathutils import Vector
         return Vector((0.0, 1.0, 0.0)) * self.matrix.to_3x3()
 
     @property
     def z_axis(self):
         """ Vector pointing down the x-axis of the bone.
         """
+        from mathutils import Vector
         return Vector((0.0, 0.0, 1.0)) * self.matrix.to_3x3()
 
     @property