From 899ec8b6b8035bde44d49d228c30698499a87080 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sun, 5 Jun 2022 12:14:13 +0200 Subject: Curves: use uv coordinates to attach curves to mesh This implements the new way to attach curves to a mesh surface using a uv map (based on the recent discussion in T95776). The curves data block now not only stores a reference to the surface object but also a name of a uv map on that object. Having a uv map is optional for most operations, but it will be required later for animation (when the curves are supposed to be deformed based on deformation of the surface). The "Empty Hair" operator in the Add menu sets the uv map name automatically if possible. It's possible to start working without a uv map and to attach the curves to a uv map later on. It's also possible to reattach the curves to a new uv map using the "Curves > Snap to Nearest Surface" operator in curves sculpt mode. Note, the implementation to do the reverse lookup from uv to a position on the surface is trivial and inefficient now. A more efficient data structure will be implemented separately soon. Differential Revision: https://developer.blender.org/D15125 --- source/blender/editors/sculpt_paint/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/sculpt_paint/CMakeLists.txt') diff --git a/source/blender/editors/sculpt_paint/CMakeLists.txt b/source/blender/editors/sculpt_paint/CMakeLists.txt index dfd8f8b1bb9..9a9efc9e6cf 100644 --- a/source/blender/editors/sculpt_paint/CMakeLists.txt +++ b/source/blender/editors/sculpt_paint/CMakeLists.txt @@ -10,6 +10,7 @@ set(INC ../../depsgraph ../../draw ../../functions + ../../geometry ../../gpu ../../imbuf ../../makesdna -- cgit v1.2.3