From 400cda6f4f3f23fea7fdaf6caa22f45833acb36e Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Sat, 25 Nov 2023 10:11:24 -0300 Subject: [PATCH] Fix #105026: BSurfaces: 'ToolSettings' object has no attribute 'use_snap_project' The API has changed, but some addons have not been edited. --- mesh_bsurfaces.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py index 753d2023..77697792 100644 --- a/mesh_bsurfaces.py +++ b/mesh_bsurfaces.py @@ -6,8 +6,8 @@ bl_info = { "name": "Bsurfaces GPL Edition", "author": "Eclectiel, Vladimir Spivak (cwolf3d)", - "version": (1, 8, 1), - "blender": (2, 80, 0), + "version": (1, 8, 2), + "blender": (4, 0, 0), "location": "View3D EditMode > Sidebar > Edit Tab", "description": "Modeling and retopology tool", "doc_url": "{BLENDER_MANUAL_URL}/addons/mesh/bsurfaces.html", @@ -3539,11 +3539,10 @@ class MESH_OT_SURFSK_init(Operator): global_mesh_object = mesh_object.name bpy.context.scene.bsurfaces.SURFSK_mesh = bpy.data.objects[global_mesh_object] - bpy.context.scene.tool_settings.snap_elements = {'FACE'} + bpy.context.scene.tool_settings.snap_elements = {'FACE_PROJECT'} bpy.context.scene.tool_settings.use_snap = True bpy.context.scene.tool_settings.use_snap_self = False bpy.context.scene.tool_settings.use_snap_align_rotation = True - bpy.context.scene.tool_settings.use_snap_project = True bpy.context.scene.tool_settings.use_snap_rotate = True bpy.context.scene.tool_settings.use_snap_scale = True