[Bf-extensions-cvs] [238cee5] master: Enhanced 3D Cursor: use polygons instead of tessfaces
dairin0d
noreply at git.blender.org
Fri Nov 18 21:07:50 CET 2016
Commit: 238cee5d78b64abfd5c33a6c587c43cc79401cb2
Author: dairin0d
Date: Fri Nov 18 22:07:45 2016 +0200
Branches: master
https://developer.blender.org/rBAC238cee5d78b64abfd5c33a6c587c43cc79401cb2
Enhanced 3D Cursor: use polygons instead of tessfaces
===================================================================
M space_view3d_enhanced_3d_cursor.py
===================================================================
diff --git a/space_view3d_enhanced_3d_cursor.py b/space_view3d_enhanced_3d_cursor.py
index 4d18c18..abe1aac 100644
--- a/space_view3d_enhanced_3d_cursor.py
+++ b/space_view3d_enhanced_3d_cursor.py
@@ -21,8 +21,8 @@ bl_info = {
"name": "Enhanced 3D Cursor",
"description": "Cursor history and bookmarks; drag/snap cursor.",
"author": "dairin0d",
- "version": (2, 9, 8),
- "blender": (2, 7, 0),
+ "version": (2, 9, 9),
+ "blender": (2, 7, 7),
"location": "View3D > Action mouse; F10; Properties panel",
"warning": "",
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
@@ -2360,7 +2360,7 @@ class SnapUtilityBase:
if not use_object_centers:
self.potential_snap_elements = [
(obj.matrix_world * obj.data.vertices[vi].co)
- for vi in obj.data.tessfaces[face_id].vertices
+ for vi in obj.data.polygons[face_id].vertices
]
if use_object_centers:
@@ -2766,7 +2766,7 @@ class Snap3DUtility(SnapUtilityBase):
_ln = ln.copy()
- face = obj.data.tessfaces[face_id]
+ face = obj.data.polygons[face_id]
L = None
t1 = None
@@ -2870,7 +2870,7 @@ class Snap3DUtility(SnapUtilityBase):
return (matrix, face_id, obj, orig_obj)
def interpolate_normal(self, obj, face_id, p, orig, ray):
- face = obj.data.tessfaces[face_id]
+ face = obj.data.polygons[face_id]
use_smooth = face.use_smooth
if self.interpolation == 'NEVER':
More information about the Bf-extensions-cvs
mailing list