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:
authorPablo Dobarro <pablodp606@gmail.com>2019-09-09 18:44:08 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-09-09 18:55:16 +0300
commitbfbee8783138c87c0f805bcb69540f7391bf2ad3 (patch)
tree6119c308d99f41264f6ed49eba70235a06c65ed0 /source/blender/editors/sculpt_paint/sculpt_intern.h
parent55245ed6ad72d78a58d6bb8b07f60177450d948c (diff)
Sculpt: Pose Brush
This brush lets the user pose a model simulating an armature-like deformation. The pivot point for rotation is calculated automatically based on the radius of the brush and the topology of the model. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5647
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_intern.h')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_intern.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h
index b02ccca3d4a..8d009b64b6b 100644
--- a/source/blender/editors/sculpt_paint/sculpt_intern.h
+++ b/source/blender/editors/sculpt_paint/sculpt_intern.h
@@ -181,6 +181,10 @@ typedef struct SculptThreadedTaskData {
float *prev_mask;
+ float *pose_origin;
+ float *pose_initial_co;
+ float (*transform_rot)[4], (*transform_trans)[4], (*transform_trans_inv)[4];
+
float max_distance_squared;
float nearest_vertex_search_co[3];
int nearest_vertex_index;
@@ -334,6 +338,11 @@ typedef struct StrokeCache {
bool original;
float anchored_location[3];
+ /* Pose brush */
+ float *pose_factor;
+ float pose_initial_co[3];
+ float pose_origin[3];
+
float vertex_rotation; /* amount to rotate the vertices when using rotate brush */
struct Dial *dial;