diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-03-18 21:51:09 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-03-18 21:51:09 +0300 |
commit | 742fa2002ee416cddcc81e90ca8dbaa5ab520428 (patch) | |
tree | 6e07f282107c044c21f1e1cc68691904625e12ba /mesh_snap_utilities_line/snap_context_l | |
parent | 4aa080a1c338177ade30534f5d4ba20423446a8d (diff) |
mesh_snap_utilities_line: Update for changes in Blender
Diffstat (limited to 'mesh_snap_utilities_line/snap_context_l')
-rw-r--r-- | mesh_snap_utilities_line/snap_context_l/__init__.py | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/mesh_snap_utilities_line/snap_context_l/__init__.py b/mesh_snap_utilities_line/snap_context_l/__init__.py index 32b8bf74..7fa15215 100644 --- a/mesh_snap_utilities_line/snap_context_l/__init__.py +++ b/mesh_snap_utilities_line/snap_context_l/__init__.py @@ -198,6 +198,27 @@ class SnapContext(): :type space: :class:`bpy.types.SpaceView3D` """ + __slots__ = ( + '_dist_px', + '_dist_px_sq', + '_offscreen', + '_offset_cur', + '_snap_buffer', + '_snap_mode', + 'depsgraph', + 'depth_range', + 'drawn_count', + 'freed', + 'last_ray', + 'mval', + 'proj_mat', + 'region', + 'rv3d', + 'snap_objects', + 'threshold', + 'winsize', + ) + def __init__(self, depsgraph, region, space): #print('Render:', bgl.glGetString(bgl.GL_RENDERER)) #print('OpenGL Version:', bgl.glGetString(bgl.GL_VERSION)) @@ -208,7 +229,8 @@ class SnapContext(): self._offset_cur = 1 # Starts with index 1 self.proj_mat = None - self.mval = Vector((0, 0)) + self.mval = Vector((0.0, 0.0)) + self.last_ray = Vector((1.0, 0.0, 0.0)) self._snap_mode = VERT | EDGE | FACE self.set_pixel_dist(12) |