Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dalai@blender.org>2022-05-06 13:15:31 +0300
committerDalai Felinto <dalai@blender.org>2022-05-06 13:30:46 +0300
commitd02b8c1c3b8b5b3abe3728581126ffea7b4f4996 (patch)
tree3a9d78d6c1c68d0b504bbda6159491865065e465 /release/scripts/startup/bl_ui/space_view3d.py
parentb1517e26e288bfb2a1718fc7a7cf3221edbbc8c9 (diff)
UI: Expand the Snap Curves to Surface operator
The different methods are too different. It is worth having them as individual choices by the users. Differential Revision: https://developer.blender.org/D14873
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 660e7b2322b..b5bbf33b6bc 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3149,7 +3149,9 @@ class VIEW3D_MT_sculpt_curves(Menu):
def draw(self, _context):
layout = self.layout
- layout.operator("curves.snap_curves_to_surface")
+ layout.operator("curves.snap_curves_to_surface", text="Snap to Deformed Surface").attach_mode = 'DEFORM'
+ layout.operator("curves.snap_curves_to_surface", text="Snap to Nearest Surface").attach_mode = 'NEAREST'
+ layout.separator()
layout.operator("curves.convert_to_particle_system", text="Convert to Particle System")