diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2022-09-15 15:23:34 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-09-22 21:23:13 +0300 |
commit | 319ee296fd0cebbfccf2c0604618deac1ab2e3b6 (patch) | |
tree | 87fd17e095783c027afc666c221fa5bccbcb3b01 /source/blender/draw/intern/draw_curves_private.h | |
parent | 680fa8a523e0df2181305a1d2abfb52011510f59 (diff) |
Curves editmode: show point selection
Points cannot be selected atm in editmode, this patch just shows the
selection from sculptmode in editmode.
Since the selection in sculptmode is a float, a point is considered
selected as soon as the float selection is above 0.0f.
Implementation: this piggy-back on the existing drawing via
overlay_edit_curve_point.glsl which requires a "data" VBO which holds
flags for selection (next to others such as "active" - which we also
have to take care of later).
Differential Revision: https://developer.blender.org/D16021
Diffstat (limited to 'source/blender/draw/intern/draw_curves_private.h')
-rw-r--r-- | source/blender/draw/intern/draw_curves_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_curves_private.h b/source/blender/draw/intern/draw_curves_private.h index 31122ed5248..a74878ec674 100644 --- a/source/blender/draw/intern/draw_curves_private.h +++ b/source/blender/draw/intern/draw_curves_private.h @@ -70,6 +70,9 @@ typedef struct CurvesEvalCache { GPUVertBuf *proc_point_buf; GPUTexture *point_tex; + /* Editmode data (such as selection flags) used by overlay_edit_curve_point.glsl */ + GPUVertBuf *data_edit_points; + /** Info of control points strands (segment count and base index) */ GPUVertBuf *proc_strand_buf; GPUTexture *strand_tex; |